Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
2017-10-30 14:12
1501 查看
把AS 升级到3.0时出现了这个问题
![](https://img-blog.csdn.net/20171030141239991?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfMTc4MTk0OTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
修改下对应的gradle版本就能解决
![](https://img-blog.csdn.net/20171030141544407?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfMTc4MTk0OTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
3.0的软件把版本改到4.1
2.3的软件为3.3
Project下的build.gradle内版本号设为和软件版本一致
修改下对应的gradle版本就能解决
3.0的软件把版本改到4.1
2.3的软件为3.3
Project下的build.gradle内版本号设为和软件版本一致
相关文章推荐
- 异常: Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
- Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
- Android studio Error :...you can't have non-Gradle Java modules and Android-Gradle modules ...
- Android Gradle偶遇 Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOM
- The package does not support the device architecture (x86). You can change the supported architectures in the Android Build section of the Project Opt
- Android 1.5 project in Eclipse and whenever I merely have an x
- You have a maze with obstacles and non-zero digits in it
- "Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.".
- Cant migrate project to Gradle in Android Studio
- What is new and important info you can get from JavaOne 2007
- How one VBA project can use an object declared in the class module of another project
- HttpPost works in Java project, not in Android
- Ubuntu 9.10, Java 5 and the Android Open Source Project
- Admob广告的android显示 "you must have AdActivity declared in AndroidManifest.xml with configChanges"
- ASP.NET WebForms and MVC together in one project
- osw ERROR. You do not have a legitimate version of java in your PATH
- Developers’ Must-have: the new Microsoft All-In-One Code Framework Sample Browser and 3500+ samples
- Developers’ Must-have: the new Microsoft All-In-One Code Framework Sample Browser and 3500+ samples
- Error: "Database 'XXX' is already open and can only have one user at a time"
- hello,every one ...i am happy to have a chance to study with you and i hope i can promote everyday!