1.More than one file was found with OS independent path :解决办法,在gradle文件的android下配置packagingOptions {pickFirst'META-INF/*'}
2.Program type already present: jar包重复,删除即可,也可以编译的时候排除掉。
3.OutOfMemoryError:
android:largeHeap="true"
4.Gradle sync failed: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
下载mips64el-linux-android放到ndk对应目录下即可。
5.has different version for the compile (26.0.0-alpha1) and runtime (27.1.1) classpath.
api 配置可以外部引用,implemention 外部不能用。
6.Write access is allowed from event dispatch thread only
File->project structure->Android sdk -> embedded
给当前的android studio的jdk换个版本,使用android studio 自带的jre。JDK版本 和 sdk版本冲突。
7.Unable to resolve host
可能是没有连接网络导致的
网友评论