首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我的应用程序无法构建,因为我甚至不理解以下logcat错误

我的应用程序无法构建,因为我甚至不理解以下logcat错误
EN

Stack Overflow用户
提问于 2016-11-27 23:29:25
回答 1查看 45关注 0票数 0

这里是logcat。我需要澄清这个错误,请社区

代码语言:javascript
复制
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: `com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: me`thod ID not in [0, 0xffff]: 65536

我做了更改,但再次收到此错误??

代码语言:javascript
复制
11-28 13:36:28.308 19872-19872/com.example.moses.nganya E/AndroidRuntime: FATAL EXCEPTION: main
                                                                          Process: com.example.moses.nganya, PID: 19872
                                                                          java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.moses.nganya/com.example.moses.nganya.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
EN

回答 1

Stack Overflow用户

发布于 2016-11-28 19:29:48

请参考this.The原因是您已经超出了方法limit.This主要是由于使用google-play- libraries.Try或任何其他大型服务在使用google-play-services时仅使用必需的组件。可以在here中找到各个库的列表

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40830591

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档