Error:This Gradle plugin requires Studio 3.0 minimum
这是studio3.0 以上写的代码需要配置gradle文件才可以运行
具体的方法
- gradle.properties这个文件里面添加如下代码
android.injected.build.model.only.versioned=3 - 然后再添加如下代码
android.injected.testOnly=false - 然后安装Apk的时候还会报错的解决不能安装
Installation failed with message Invalid File: E:\Users\imp_mac\Desktop\安卓工程\瑞涵\app\build\intermediates\split-apk\debug\slices\slice_6.apk.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
这个问题的解决
重新编译项目即可
本文介绍了如何解决因Gradle插件要求Studio3.0及以上版本导致的错误。通过修改gradle.properties文件并添加特定代码,可以成功配置并运行代码。同时,针对安装APK时出现的无效文件错误,提供了简单的解决办法。
1416

被折叠的 条评论
为什么被折叠?



