Android Studio Exception Rollup

Source: Internet
Author: User

Android Studio Runtime appears finished with non-zero exit value 2 Error analysis

Reason:

Project contains two different project or jar with the same package name

Example:

1, when the A module has V4 package, B module also has V4 bag, this will appear this error

Solution Ideas:

Remove the extra jar

such as V4 package, as long as the V4 in one of the module is broken down, and then reference another V4 package of the module is OH

Android Studio error Com.android.dex.DexIndexOverflowException:method ID not in [0, 0xFFFF]: 65536

1th Step
Add a Build.gradle support Multidex library that relies on your

dependencies { ... compile ‘com.android.support:multidex:1.0.1‘ ... }

2nd Step
Turn on multidexenabled in BuildType or Productflavor.

defaultConfig { ... multiDexEnabled true ... }

Android Studio Exception Rollup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.