- 启动APG升级助理 Tools->APG Upgrade Assistant
- 提示升级操作,点击run selected steps
2,Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository ‘maven(http://144.123.178.10:10000/repository/wnong-android-repos/)’ to redirect to a secure protocol (like HTTPS) or allow insecure protocols.错误提示
相关错误代码:
解决方法:暂时注释掉
3,Plugin with id ‘maven’ not found.相关错误:
相关错误代码
错误原因:只允许https的,不允许是http的
解决方法:
4,The specified Android SDK Build Tools version(xxxx) is ignored,as it is below the minium supported version (30.0.2) for Android Gradle Plugin 7.0.0相关错误
错误代码:
解决办法:
5,Failed to notify build listener.> com.android.tools.r8.Version.isDevelopmentVersion()Z相关错误:
相关错误代码
错误原因:Android Gradle Plugin 7.0.0 对Android buildTools 最低要求30.0.0
解决办法:
6,Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.相关错误:
错误代码:
修改方式:
7,The option ‘android.enableBuildCache’ is deprecated.相关错误:
错误位置:
错误原因:AGP最低需要java 11,但是当前版本是java8
修改方式:
8,找不到BuildConfig.APPLICATION_ID错误信息:
相关代码
错误原因:android. enableBuildCache是用来启动gradle缓存的,在Gradle7.0版本中不对外开放,默认值是false
修改方法:
9,The minCompileSdk (30) specified in a dependency’s AAR metadata错误提示:
错误代码:
错误原因:
Android Studio 3.5 之后做出了变更:
BuildConfig: Deprecate APPLICATION_ID in libraries.
It is at best misleading, so it is marked as deprecated and replaced by
LIBRARY_PACKAGE_NAME.
错误提示
错误代码:
修改方式: 升级了本地版本



