android-multidex

Java.exe exited with code 2 in android app built in VS 2015

假如想象 提交于 2019-12-24 02:05:19
问题 I have built an android app using xamarin in VS2015. I was able to release first version of app on google play service. The other day, I tried to fix the problems and modified some UI, added some xml files and activities. But I got the error java.exe exited with code 2 in debug mode when I build the project whereas building was successful in release mode. I tried changing HeapSize 1G to 2G found no difference. I tried to enable ProGuard but found disabled by default. I went through enabling

Java.exe exited with code 2 in android app built in VS 2015

天大地大妈咪最大 提交于 2019-12-24 02:03:48
问题 I have built an android app using xamarin in VS2015. I was able to release first version of app on google play service. The other day, I tried to fix the problems and modified some UI, added some xml files and activities. But I got the error java.exe exited with code 2 in debug mode when I build the project whereas building was successful in release mode. I tried changing HeapSize 1G to 2G found no difference. I tried to enable ProGuard but found disabled by default. I went through enabling

Gradle Build Failure java.io.IOException: The output jar is empty

浪子不回头ぞ 提交于 2019-12-24 00:57:03
问题 My android studio project builds fine when running the app normally, but when I try to run tests I get the following gradle error message: :app:transformClassesWithMultidexlistForDebugAndroidTest FAILED Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebugAndroidTest'. > java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options? Information:BUILD FAILED Information:Total time: 27.049 secs Information:1 error Information:0 warnings

Android - Transform Classes With Multidexlist For Debug - Instagram JSON Parser

大城市里の小女人 提交于 2019-12-23 09:16:13
问题 I'm trying to compile and deploy my Android App, but i have got an MultiDex issue : Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > java.lang.UnsupportedOperationException (no error message) I already tryed many fix but they doesn't works. What i already tryed : 1. multiDexEnabled true 2. dexOptions dexOptions { javaMaxHeapSize "4g" preDexLibraries = false } 3. Turning off Instant Run in Android Studio settings 4. Reboot Android Studio and computer. 5. Clear

Android: SugarORM and multidex

独自空忆成欢 提交于 2019-12-23 08:03:34
问题 I'm working with Android project that uses SugarORM. Now the method limit has increased so much that I have to activate multidex support. But now I have a problem with SugarORM, it creates only the tables that are in classes.dex file. It seems to ignore classes2.dex completely. Is that really a bug in Sugar and is there some good way to bypass the problem? 回答1: There is a bug on Sugar ORM with Multidex. The reflection api doesn't find your model classes when they are out of primary dex file,

Duplicate entry error when integrating appodeal

混江龙づ霸主 提交于 2019-12-22 18:11:09
问题 error: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v7/widget/StaggeredGridLayoutManager$SavedState$1.class Dependencies: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':cheetah-mobile-3.4.7') compile 'com.android.support:multidex:1.0.1' compile('com.android.support:appcompat-v7:24.0.0') { force = true; } compile(

MultiDexApplication class in secondary dex file not found when using AndroidX

*爱你&永不变心* 提交于 2019-12-21 05:25:13
问题 I'm using 'androidx.multidex:multidex:2.0.0' and I'm pointing to the MultiDexApplication class from the manifest using: <application android:name="androidx.multidex.MultiDexApplication" ... On the build.gradle I also added the follwoing entry: defaultConfig { ... multiDexEnabled true ... When running the application in Android versions older than 5.0 (API 21) I get the following exception: java.lang.RuntimeException: Unable to instantiate application androidx.multidex.MultiDexApplication:

VerifyError in multidex app when injecting dependency with Dagger

蓝咒 提交于 2019-12-21 04:59:13
问题 A sample app for library has ~67k methods. It has multidex enabled to overcome the 65k method limit. Unfortunately with multidex enabled the app crashes on VerifyError when trying to inject EndpointAdapter in main activity. This issue doesn't occur when the app is proguarded and the multidex is disabled, so it must be caused by multidex and Dagger 1 problems. I'm sure EndpointAdapter is in the main dex file, but some classes generated by Dagger are located in the second dex file generated by

java.util.MissingResourceException: Can't find bundle for base name javax.servlet.LocalStrings

大憨熊 提交于 2019-12-20 02:33:54
问题 I have an Android app that uses multidex. It is released and has monthly users in the hundreds of thousands. Every so often I will get ExceptionInInitializerError crashes on Crashlytics. I've never been able to reproduce them. I read that this can be due to multidex and that have multiDexKeepFile file('multidex-config.txt') on my config with a list of classes would help, but it doesn't seem to help, at least not for this resource. This is the content on my multidex-config.txt : org.eclipse

Getting 'app:transformClassesWithDexForDebug' error on compiling the project having useLibrary 'org.apache.http.legacy' in build.gradle

半城伤御伤魂 提交于 2019-12-19 19:00:13
问题 I'm developing an app in which I'm using this library. On compiling the project, this error containing TransformException and RuntimeException is popping up: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j\1.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b