android-multidex

Gradle DSL method not found : 'multiDexEnabled()'

爷,独闯天下 提交于 2019-12-01 15:39:04
问题 I followed the multidex guide at https://developer.android.com/tools/building/multidex.html But I get this error Gradle DSL method not found : 'multiDexEnabled()' . I have updated Android Built Tools , Android Support Repository and Library. Here is my gradle.build file. Am I doing something wrong here? Could not find method multiDexEnabled() for arguments [true] on ProductFlavorDsl_Decorated{name=main, minSdkVersion=ApiVersionImpl{mApiLevel=10, mCodename='null'}, targetSdkVersion

VM has multidex support, MultiDex support library is disabled

我的梦境 提交于 2019-12-01 15:04:33
I'm getting the following error. FATAL EXCEPTION: main VM with version 2.1.0 has multidex support install VM has multidex support, MultiDex support library is disabled. install VM has multidex support, MultiDex support library is disabled. Shutting down VM here is my build.gradle,i have enables the multidex in the android part, apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '23.0.0' defaultConfig { applicationId "com.mycompany.newlogin" minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release {

VM has multidex support, MultiDex support library is disabled

拟墨画扇 提交于 2019-12-01 13:58:26
问题 I'm getting the following error. FATAL EXCEPTION: main VM with version 2.1.0 has multidex support install VM has multidex support, MultiDex support library is disabled. install VM has multidex support, MultiDex support library is disabled. Shutting down VM here is my build.gradle,i have enables the multidex in the android part, apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '23.0.0' defaultConfig { applicationId "com.mycompany.newlogin" minSdkVersion

MultiDexApplication not recognized

拟墨画扇 提交于 2019-12-01 13:47:31
问题 Trying to use MultiDexApplication in my app, but the class is not recognized when I try to extend my application activity with it. Here is my build.gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion '21.0.1' defaultConfig { applicationId 'com.myapp' minSdkVersion 10 targetSdkVersion 21 versionCode 115 versionName '4.8' } buildTypes { debug { debuggable true runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'),

OAuth in Android application

时光总嘲笑我的痴心妄想 提交于 2019-12-01 12:54:29
I need to use OAuth protocol in my Android application. I decided to use android-oauth-client . In my build.gradle file I have: dependencies { compile 'com.android.support:appcompat-v7:21.0.0' compile 'com.wu-man:android-oauth-client:0.0.3' } Sync project with gradle files works fine, but when I try to build my application, there is a problem: Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_51\bin\java.exe'' finished with non-zero exit value 2 I found

:app:transformClassesWithMultidexlistForDebug FAILED

僤鯓⒐⒋嵵緔 提交于 2019-12-01 11:08:57
I have tried the following links http://developer.android.com/intl/es/tools/building/multidex.html UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define com.android.build.transform.api.TransformException ':app:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: when i added Facebook latest SDK in my studio project Android Studio TransformException : Error:Execution failed for task ':app:transformClassesWithDexForDebug' Java finished with non-zero exit value 2 - Android Gradle com.android.build.transform.api

Enable Multidex for Android in Ionic framework

雨燕双飞 提交于 2019-12-01 07:18:08
问题 Is there a way to set enable multidex (https://github.com/casidiablo/multidex) for Android if I build apps using Ionic Framework ? 回答1: There is a plugin that enables multidex. To install it, run: cordova plugin add --save https://github.com/jwall149/cordova-multidex And try building again. The build may take a little longer than usual, but your app should compile without troubles. 回答2: For people using androidx and cordova-android: 8 is interested in this solution, I created a fork that

Running a Multidexed Espresso .APK

為{幸葍}努か 提交于 2019-12-01 06:37:22
When running Espresso tests with ./gradlew connectedDebugAndroidTest , we're having this issue: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 As we're using Multidex at the main app and just adding the Espresso dependencies on the instrumented test one, we don't get why it doesn't work :·( In addition, if we run the tests via IntelliJ instead of Gradle, it works :·| By the way, we need to run them via Gradle to automate

Running a Multidexed Espresso .APK

只愿长相守 提交于 2019-12-01 04:51:46
问题 When running Espresso tests with ./gradlew connectedDebugAndroidTest , we're having this issue: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 As we're using Multidex at the main app and just adding the Espresso dependencies on the instrumented test one, we don't get why it doesn't work :·( In addition, if we run the

Android Espresso multidex fail

人盡茶涼 提交于 2019-12-01 04:13:00
We use multidex in our app for a long time but recently with latest update it fails on android API <19 e.g. emulator with api 16 It is standard java.lang.NoClassDefFoundError. If I define multidexKeepProguard for missing class e.g. java.lang.NoClassDefFoundError. rx.plugins.RxJavaHooks exception -keep class rx.plugins.**{*;} then it will just fail in a different place with the same reason NoClassDefFound Here is the runner, app and manifest setup: https://gist.github.com/originx/1890599b57b0ee3e14a85a4732301cd9 Logcat: https://gist.github.com/originx/887f80d405334f1903b3024eb5cd1024 Build