[英]New android studio flavor
I just updated my android studio and ran into the following error. 我刚刚更新了我的android工作室并遇到了以下错误。
Error:java.lang.RuntimeException: Unexpected scopes found in folder 'D:\****\****\****\app\build\intermediates\transforms\dexMerger\dev_demo\debug'. Required: EXTERNAL_LIBRARIES. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS
I tried closing, cleaning and building but it won't work. 我尝试关闭,清洁和建造,但它不起作用。
Anybody encountered the same problem ? 有人遇到过同样的问题吗?
从项目文件夹中删除.gradle文件夹为我修复了这个问题。
It goes away if you downgrade the gradle plugin from 3.0.+ to 2.3.3. 如果将gradle插件从3.0。+降级到2.3.3,它就会消失。 But still not the soluton we need. 但仍然不是我们需要的解决方案。
I found a solution which works in my case. 我发现了一个适用于我的解决方案。 I deleted the .gradle and .idea folder from the application source directory and then re-run the app. 我从应用程序源目录中删除了.gradle和.idea文件夹,然后重新运行该应用程序。 It works fine for me. 这对我来说可以。
I am not sure about the cause (might be related with studio cache), it works in my case. 我不确定原因(可能与工作室缓存有关),它适用于我的情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.