2016-11-27 7 views
0

ここはlogcatです。このエラーの説明が必要です。コミュニティにしてください。私のアプリケーションは、私が理解していない以下のログキャッチエラーのために構築できません。

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 

私は変更を行いましたが、もう一度このエラーが発生しますか?

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) 
+1

hereを見つけることができ、あなたがmultidex試すことができます。http://stackoverflow.com/questions/38714651/android-studio-dexindexoverflowexception-method-id-not-に –

答えて

0

あなたは、メソッドlimit.Thisを超えたあるthis【選択の理由は、Googleのプレイを使用している場合のみ、必要なコンポーネントを使用するため、グーグル・プレイ・サービスやその他の大型libraries.Tryの使用を主に参照してください。個々のライブラリの-services.Listあなたは方法の制限を超えた可能性がある

関連する問題