简体   繁体   English

DexArchieveBuilderException-Android Studio 3.0.1

[英]DexArchieveBuilderException - Android Studio 3.0.1

I changed a class name of my project after which on running the app, I'm being showed this in "Message Build Gradle". 我更改了项目的类名,然后在运行该应用程序后,在“消息构建Gradle”中向我显示了该类名。 I've tried undoing the name change but still it is being showed. 我尝试撤消名称更改,但仍在显示。

Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\Wamiq_stuff\My_Android_work\AssignShare\app\build\intermediates\transforms\instantRunSlicer\debug\5
Error:com.android.dx.cf.iface.ParseException: class name (com/wamiqanwar/assignshare/login_page$3) does not match path (com/wamiqanwar/assignshare/Login_Page$3.class)
Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing com/wamiqanwar/assignshare/Login_Page$3.class
Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\Wamiq_stuff\My_Android_work\AssignShare\app\build\intermediates\transforms\instantRunSlicer\debug\5

Thanks for Reading!! 谢谢阅读!!

You need to clean and rebuild the project. 您需要清理并重建项目。 This problem probably happened because the app with Instant Run feature enabled is not rebuild after you've changed the code. 发生此问题的原因是,更改代码后,未重新启用启用了“ 即时运行”功能的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM