Leanote's Blog
I love Leanote!
Toggle navigation
Leanote's Blog
Home
Chrome
Git
Linux
Windows
Others
工具大全
VsCode
Expo
Html
JavaScript
Npm
Node
Mock
React-Native
React
TypeScript
小程序
插件
正则
Dva
Ant-Design-React
Umi
Vue
Vux
Ant-Design-Vue
Http
Java
flutter
开发小工具
About Me
Archives
Tags
flutter在android中遇到的问题
2019-11-14 07:46:34
11
0
0
admin
## **编译报错: `The number of method references in a .dex file cannot exceed 64K.` (.dex文件中的方法引用数不能超过64k)** **解决方案: **: > 在`android/app/build.gradle`中的 `dependencies` 下添加 `implementation 'com.android.support:multidex:1.0.3'` > 在`android/app/build.gradle`中的 `defaultConfig` 下添加 `multiDexEnabled true` **** ## **编译报错, 提示如下:** ``` * What went wrong: A problem occurred configuring project ':fluwx'. > Failed to install the following Android SDK packages as some licences have not been accepted. platforms;android-27 Android SDK Platform 27 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html Using Android SDK: E:\AndroidSDK ``` **解决方案: ** > 可以看出是因为缺少 `[Android SDK Platform 27]` > 这时执行 `android list sdk --all` 寻找匹配的序号 执行 `android update sdk -u -a -t 53` 询问时输入 `"y"` 并耐心等待 ****
Pre:
flutter在windows上搭建环境并启动
Next:
Flutter在AndroidStudio上使用帮助
0
likes
11
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.