1.从GitHub上clone项目报Could not determine java version from ‘11.0.8‘解决方法:
在Android studio的右上角选择
这个图标,点击
Android Gradle Plugin Version 设置为 3.3.0, Gradle Version 设置为 5.0 就行了!
2.从GitHub上clone项目报Connection was reset, errno 10054,解决方法:
更新DNS缓存
Windows用户:cmd命令窗口执行:ipconfig /flushdns
然后再重新clone就ok啦!
3.运行中出现Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.android.internal.application'],解决方法:
在项目中的gradle.properties文件中添加语句:android.overridePathCheck=true
4.从GitHub上clone项目,报A problem occurred configuring project ':app'. > java.lang.NullPoint,解决方法:
在Android studio的右上角选择
这个图标,点击
5.从GitHub上clone项目,报Could not find com.android.tools.build:gradle:3.3.0. Searched in the followi,解决方法:加上google()即可
6.从GitHub上clone项目,报ABIs [armeabi] are not supported for platform. Supported ABIs are [arm64-v8a, armeabi-v7a, x86, x86_64].解决方法:
将
改为
7.运行app报下面这个错误
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
解决方法:
在app的gradle.properties中添加 android.enableJetifier=true或者android.useAndroidX=true android.enableJetifier=true