umeng / MultiFunctionAndroidDemo

友盟多功能Android Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

跑这个demo遇到问题,自己的解决方法

Aicent opened this issue · comments

自己的studio版本3.5.1。Mac版。
导入工程,自动运行。

ERROR: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
This version of the NDK may be incompatible with the Android Gradle plugin version 3.0 or older.
Please use plugin version 3.1 or newer.

Upgrade plugin to version 3.5.1 and sync project

解决方法:点击Upgrade gradle版本 升级到了3.5.1

============
2.
ERROR: The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?
Affected Modules: UMLibrary
解决方法:打开UMLibrary/build.gradle
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
这个方法中的instrumentTest替换为androidTest

============
3.
Could not find com.android.tools.build:aapt2:3.5.1-5435860.
Searched in the following locations:

解决方法:打开app/build.gradle
在android下新增
allprojects {
repositories {
google()//新增的

    }
}

=========
至此可以完美运行,如有问题,欢迎讨论。

我也是醉了……

谢谢分享,同样遇到这个问题