美文网首页
Error:Uncaught translation error

Error:Uncaught translation error

作者: Gambol_r | 来源:发表于2018-01-12 15:05 被阅读0次

Error:Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)

Found a solution. I fixed this by using the Gradle build option and adding a .gradle file to Plugins/Android/mainTemplate.gradle. The gradle file needs the following:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

解决办法: 在App的build.gralde 下添加
compileOptions {//使用JAVA8语法解析
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

image.png

相关文章

网友评论

      本文标题:Error:Uncaught translation error

      本文链接:https://www.haomeiwen.com/subject/zksfoxtx.html