Android Studio升级3.5.0总结

0、项目的gradle 把gradle和plugin升级到最新版
	https://developer.android.google.cn/studio/releases/gradle-plugin?hl=en
	classpath 'com.android.tools.build:gradle:3.5.0'
	distributionUrl=http\://services.gradle.org/distributions/gradle-5.4.1-all.zip

1、Error:SSL peer shut down incorrectly
	注:不是gradle下载不了,是依赖库安装不了
	解决:用阿里云依赖https://www.cnblogs.com/360minitao/p/11014396.html

2、org.jetbrains.android.sdk.AndroidSdkData.getSdkData (看idea.log看出来的)
	Gradle sync failed: java.lang.NullPointerException	
	解决:没有SDK 28, 用SDK Manage下载

3、Cannot fit requested classes in a single dex file (# methods: 84103 > 65536)
	解决:方法超了,用MultiDex配置

4、Gradle DSL method not found: 'multiDexEnabled()'
	解决:multiDexEnabled true放到defaultConfig下

 

你可能感兴趣的:(Android)