Build android app via maven android plugin apk installation error -
i trying build android app via maven android plugin. have used multi-dex=true in pom file. tried using forcejumbo=true. googled on it. didn't find satisfactory answer. getting error while installing apk file.
when install cmd gives error :
failure [install_failed_dexopt]
when tried install email on device gives error :
e/dex2oat(11177): failed open dex file descriptor zip file '/data/app/com.xx.yyy-1/base.apk': failed open dex file '/data/app/com.xx.yyy-1/base.apk' memory: unrecognized magic number in /data/app/com.xx.yyy-1/base.apk: p k
how fix this?
why used multi dex :
i getting error:
trouble writing output: many method references: 72545; max 65536. [info] may try using --multi-dex option. used multi dex
<dependencies> <dependency> <groupid>com.google.android</groupid> <artifactid>android</artifactid> <version>4.1.1.4</version> <scope>provided</scope> </dependency> <dependency> <groupid>com.google.android.maps</groupid> <artifactid>maps</artifactid> <version>22_r1</version> <scope>provided</scope> </dependency> <dependency> <groupid>android.support</groupid> <artifactid>compatibility-v4</artifactid> <version>22.2.0</version> </dependency> <dependency> <groupid>com.nostra13.universalimageloader</groupid> <artifactid>universal-image-loader</artifactid> <version>1.9.2</version> </dependency> <dependency> <groupid>com.google.oauth-client</groupid> <artifactid>google-oauth-client</artifactid> <version>1.6.0-beta</version> <exclusions> <exclusion> <artifactid>xpp3</artifactid> <groupid>xpp3</groupid> </exclusion> <exclusion> <artifactid>android</artifactid> <groupid>com.google.android</groupid> </exclusion> </exclusions> </dependency> <dependency> <groupid>com.google.guava</groupid> <artifactid>guava</artifactid> <version>r09</version> <exclusions> <exclusion> <groupid>xpp3</groupid> <artifactid>xpp3</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>com.google.http-client</groupid> <artifactid>google-http-client</artifactid> <version>1.6.0-beta</version> <exclusions> <exclusion> <groupid>xpp3</groupid> <artifactid>xpp3</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>com.google.api-client</groupid> <artifactid>google-api-client</artifactid> <version>1.6.0-beta</version> <exclusions> <exclusion> <groupid>com.google.code.findbugs</groupid> <artifactid>jsr305</artifactid> </exclusion> <exclusion> <groupid>com.google.code.gson</groupid> <artifactid>gson</artifactid> </exclusion> <exclusion> <groupid>junit</groupid> <artifactid>junit</artifactid> </exclusion> <exclusion> <groupid>org.apache.httpcomponents</groupid> <artifactid>httpclient</artifactid> </exclusion> <exclusion> <groupid>org.codehaus.jackson</groupid> <artifactid>jackson-core-asl</artifactid> </exclusion> <exclusion> <groupid>commons-jxpath</groupid> <artifactid>commons-jxpath</artifactid> </exclusion> <exclusion> <groupid>xpp3</groupid> <artifactid>xpp3</artifactid> </exclusion> <exclusion> <groupid>commons-logging</groupid> <artifactid>commons-logging</artifactid> </exclusion> <exclusion> <groupid>android</groupid> <artifactid>android</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.codehaus.jackson</groupid> <artifactid>jackson-core-asl</artifactid> <version>1.9.1</version> <exclusions> <exclusion> <groupid>xpp3</groupid> <artifactid>xpp3</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>com.google.apis</groupid> <artifactid>google-api-services-analytics</artifactid> <version>v3-rev96-1.18.0-rc</version> </dependency> <dependency> <groupid>com.facebook.android</groupid> <artifactid>facebook-android-sdk</artifactid> <scope>system</scope> <version>4.0.1</version> <systempath>/home/mangospring/ms/mangoandroid/tags/2015_05_18_oc_v_1_4_5/libs/facebooksdk.jar</systempath> <exclusions> <exclusion> <artifactid>support-v4</artifactid> <groupid>com.google.android</groupid> </exclusion> </exclusions> </dependency> <!--dependency> <groupid>fr.avianey</groupid> <artifactid>facebook-android-api</artifactid> <version>3.18.0</version> <type>aar</type> </dependency--> <dependency> <groupid>com.parse.bolts</groupid> <artifactid>bolts-android</artifactid> <version>1.1.2</version> </dependency> <dependency> <groupid>com.google.android.gms</groupid> <artifactid>google-play-services</artifactid> <version>25.0.0</version> <type>jar</type> </dependency> </dependencies>
Comments
Post a Comment