compilation - Build Failure on Android Studio -
after updating google support libraries latest versions, v21 v22.2.0 , play services v7.5, project no longer builds successfully. log follows:
app:predexdebug agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} :app:dexdebug agpbi: {"kind":"simple","text":"picked java_tool_options: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} agpbi: {"kind":"simple","text":"unexpected top-level exception:","sources":[{}]} agpbi: {"kind":"simple","text":"com.android.dex.dexindexoverflowexception: method id not in [0, 0xffff]: 65536","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.merge.dexmerger$6.updateindex(dexmerger.java:502)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.merge.dexmerger$idmerger.mergesorted(dexmerger.java:277)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.merge.dexmerger.mergemethodids(dexmerger.java:491)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.merge.dexmerger.mergedexes(dexmerger.java:168)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.merge.dexmerger.merge(dexmerger.java:189)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.command.dexer.main.mergelibrarydexbuffers(main.java:454)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.command.dexer.main.runmonodex(main.java:303)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.command.dexer.main.run(main.java:246)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.command.dexer.main.main(main.java:215)","sources":[{}]} agpbi: {"kind":"simple","text":"\tat com.android.dx.command.main.main(main.java:106)","sources":[{}]} failed failure: build failed exception. * went wrong: execution failed task ':app:dexdebug'. > com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished non-zero exit value 2 * try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed total time: 1 mins 46.623 secs
i have tried reverting libraries earlier versions same error still arises. have suggestion on how solve problem?
play services big library tens of thousands of methods eat dex limit. better replace play services imports parts need. version 6.5, can instead selectively compile google play service apis app.
google+ com.google.android.gms:play-services-plus:7.5.0 google account login com.google.android.gms:play-services-identity:7.5.0 google actions, base client library com.google.android.gms:play-services-base:7.5.0 google app indexing com.google.android.gms:play-services-appindexing:7.5.0 google app invites com.google.android.gms:play-services-appinvite:7.5.0 google analytics com.google.android.gms:play-services-analytics:7.5.0 google cast com.google.android.gms:play-services-cast:7.5.0 google cloud messaging com.google.android.gms:play-services-gcm:7.5.0 google drive com.google.android.gms:play-services-drive:7.5.0 google fit com.google.android.gms:play-services-fitness:7.5.0 google location, activity recognition, , places com.google.android.gms:play-services-location:7.5.0 google maps com.google.android.gms:play-services-maps:7.5.0 google mobile ads com.google.android.gms:play-services-ads:7.5.0 google nearby com.google.android.gms:play-services-nearby:7.5.0 google panorama viewer com.google.android.gms:play-services-panorama:7.5.0 google play game services com.google.android.gms:play-services-games:7.5.0 safetynet com.google.android.gms:play-services-safetynet:7.5.0 google wallet com.google.android.gms:play-services-wallet:7.5.0 android wear com.google.android.gms:play-services-wearable:7.5.0
Comments
Post a Comment