- Android 报错: Cannot fit requested
- Android单Dex文件的64K限制
- Error:Cannot fit requested class
- Error: Cannot fit requested clas
- Error: Cannot fit requested clas
- Cannot fit requested classes in
- Android Try supplying a main-dex
- [Android]Cannot fit requested cl
- Error: Cannot fit requested clas
- caused by: cannot fit requested
参考:Stack Overflow
修改 build.gradle(:app)
android {
compileSdkVersion 30
buildToolsVersion "30.0.0"
defaultConfig {
applicationId "com.xxx.test.dave"
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
multiDexEnabled true <------这里
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
...
}
dependencies {
...
implementation 'com.android.support:multidex:1.0.3' <---这里
...
}
Your Application must be of the Multidex type.. You must write it in the manifest :
android:name=".MyApplication"
<---这里
"MyApplication" must be either the Multidex class, or it must extend it.
网友评论