Flutter出现has different version f
作者:
坤哥爱卿 | 来源:发表于
2019-12-26 15:16 被阅读0次导入barcode_scan调用系统扫描Api时会出现如下错误
解决办法
1.android/gradle/wrapper/gradle-wrapper.properties里面
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
2.android/build.gradle
dependencies { classpath 'com.android.tools.build:gradle:3.3.0' }
3.android/gradle.properties
加入
android.enableJetifier=true
android.useAndroidX=true
4.android/app/build.gradle 修改版本号:
make sure compileSdkVersion and targetSdkVersion are at least 28.
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
5.android/app/build.gradle /defaultConfig加上
multiDexEnabled true
本文标题:Flutter出现has different version f
本文链接:https://www.haomeiwen.com/subject/ejtloctx.html
网友评论