Questions tagged «android-studio-3.4»

10
升级到Android Studio 3.4后与resources_ap相关的错误
我今天升级了Android Studio 3.4。我不再能够运行该应用程序。我已经清理了项目,并多次重启了Android Studio。我也使缓存无效无济于事。安装应用程序时出现以下错误: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformDexWithInstantRunSlicesApkForDebug'. > java.lang.RuntimeException: java.io.FileNotFoundException: E:\...\app\build\intermediates\instant_run_split_apk_resources\debug\instantRunSplitApkResourcesDebug\out\slice_1\resources_ap 谁能提供有关如何纠正此问题的提示? 编辑: 我有两个项目具有与此问题相关的不同行为: 项目A最初存在此问题。我根据答案禁用了Instant Run,问题得以解决。我稍后启用了Instant Run,而Project A仍然可以正常工作。 项目B也存在此问题,可以通过启用“即时运行”来解决。但是,打开即时运行后,将立即发生其问题。我认为这两个项目之间没有什么区别。一个嫌疑人是图书馆C项目。库C是项目A的一部分(即其源代码,资源在项目A中)。但是,项目B使用库C的aar作为模块。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.