android - Finished with non-zero exit value 2 -


i had problem hours, did not risolve. please me.

  1. i have did clean / build / rebuild / cache invalidate / gradle sync etc.
  2. finally error when have onclick listner in alert dialog.
  3. i calling button show dialog fragment pass context "getactivity" .. works toast not problem(toast works , dialog works ok button no listeners.)

:app:prebuild up-to-date :app:predebugbuild up-to-date :app:checkdebugmanifest :app:prereleasebuild up-to-date :app:preparecomandroidsupportappcompatv72220library up-to-date :app:preparecomandroidsupportdesign2220library up-to-date :app:preparecomandroidsupportmediarouterv72200library up-to-date :app:preparecomandroidsupportsupportv42220library up-to-date :app:preparecomcrashlyticssdkandroidanswers132library up-to-date :app:preparecomcrashlyticssdkandroidbeta113library up-to-date :app:preparecomcrashlyticssdkandroidcrashlytics252library up-to-date :app:preparecomcrashlyticssdkandroidcrashlyticscore235library up-to-date :app:preparecomgithublzyzsdcircleprogress110library up-to-date :app:preparecomgoogleandroidgmsplayservices750library up-to-date :app:preparecomgoogleandroidgmsplayservicesads750library up-to-date :app:preparecomgoogleandroidgmsplayservicesanalytics750library up-to-date :app:preparecomgoogleandroidgmsplayservicesappindexing750library up-to-date :app:preparecomgoogleandroidgmsplayservicesappinvite750library up-to-date :app:preparecomgoogleandroidgmsplayservicesappstate750library up-to-date :app:preparecomgoogleandroidgmsplayservicesbase750library up-to-date :app:preparecomgoogleandroidgmsplayservicescast750library up-to-date :app:preparecomgoogleandroidgmsplayservicesdrive750library up-to-date :app:preparecomgoogleandroidgmsplayservicesfitness750library up-to-date :app:preparecomgoogleandroidgmsplayservicesgames750library up-to-date :app:preparecomgoogleandroidgmsplayservicesgcm750library up-to-date :app:preparecomgoogleandroidgmsplayservicesidentity750library up-to-date :app:preparecomgoogleandroidgmsplayserviceslocation750library up-to-date :app:preparecomgoogleandroidgmsplayservicesmaps750library up-to-date :app:preparecomgoogleandroidgmsplayservicesnearby750library up-to-date :app:preparecomgoogleandroidgmsplayservicespanorama750library up-to-date :app:preparecomgoogleandroidgmsplayservicesplus750library up-to-date :app:preparecomgoogleandroidgmsplayservicessafetynet750library up-to-date :app:preparecomgoogleandroidgmsplayserviceswallet750library up-to-date :app:preparecomgoogleandroidgmsplayserviceswearable750library up-to-date :app:preparecomjourneyappszxingandroidembedded303library up-to-date :app:preparecomoguzdevcircularfloatingactionmenu102library up-to-date :app:preparecomreginaldswiperefreshlibrary111library up-to-date :app:prepareiofabricsdkandroidfabric136library up-to-date :app:preparerunotiesscrollable113library up-to-date :app:preparedebugdependencies :app:compiledebugaidl up-to-date :app:compiledebugrenderscript up-to-date :app:generatedebugbuildconfig up-to-date :app:generatedebugassets up-to-date :app:mergedebugassets up-to-date :app:processdebugmanifest up-to-date :app:fabricgenerateresourcesdebug :app:generatedebugresvalues up-to-date :app:generatedebugresources :app:mergedebugresources :app:processdebugresources :app:generatedebugsources :app:predebugandroidtestbuild up-to-date :app:preparedebugandroidtestdependencies :app:compiledebugandroidtestaidl up-to-date :app:processdebugandroidtestmanifest up-to-date :app:compiledebugandroidtestrenderscript up-to-date :app:generatedebugandroidtestbuildconfig up-to-date :app:generatedebugandroidtestassets up-to-date :app:mergedebugandroidtestassets up-to-date :app:generatedebugandroidtestresvalues up-to-date :app:generatedebugandroidtestresources up-to-date :app:mergedebugandroidtestresources up-to-date :app:processdebugandroidtestresources up-to-date :app:generatedebugandroidtestsources up-to-date :app:processdebugjavares up-to-date :app:compiledebugjava note: input files use or override deprecated api. note: recompile -xlint:deprecation details. :app:compiledebugndk up-to-date :app:compiledebugsources :app:predexdebug up-to-date :app:dexdebug

unexpected top-level exception: com.android.dex.dexindexoverflowexception: method id not in [0, 0xffff]: 65536 @ com.android.dx.merge.dexmerger$6.updateindex(dexmerger.java:502) @ com.android.dx.merge.dexmerger$idmerger.mergesorted(dexmerger.java:277) @ com.android.dx.merge.dexmerger.mergemethodids(dexmerger.java:491) @ com.android.dx.merge.dexmerger.mergedexes(dexmerger.java:168) @ com.android.dx.merge.dexmerger.merge(dexmerger.java:189) @ com.android.dx.command.dexer.main.mergelibrarydexbuffers(main.java:502) @ com.android.dx.command.dexer.main.runmonodex(main.java:334) @ com.android.dx.command.dexer.main.run(main.java:277) @ com.android.dx.command.dexer.main.main(main.java:245) @ com.android.dx.command.main.main(main.java:106) error:execution failed task ':app:dexdebug'. com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\program files\java\jdk1.8.0_60\bin\java.exe'' finished non-zero exit value 2 information:build failed information:total time: 13.67 secs information:1 error information:0 warnings information:see complete output in console it error here dialog , xml button

xml button

<button     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:text="rimuovi chiamata abbinata"     android:id="@+id/btn_del_chiamata"     android:layout_above="@+id/riep_tec_rl_nav"     android:layout_centerhorizontal="true"     android:layout_marginright="10dp"     android:layout_marginleft="10dp"     android:drawableright="@drawable/delete"     android:background="@xml/edit_text" /> 

you run 65k method count limit. either use multidex or reduce number of methods ( e.g. proguard ) please read this: https://developer.android.com/tools/building/multidex.html


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -