android-gradle-plugin

Android error: dalvik.system.BaseDexClassLoader.findClass

放肆的年华 提交于 2021-01-28 09:01:03
问题 Currently in my production app I am noticing this error: java.lang.RuntimeException: at android.app.ActivityThread.handleReceiver (ActivityThread.java:2648) at android.app.ActivityThread.access$1700 (ActivityThread.java:166) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1359) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:136) at android.app.ActivityThread.main (ActivityThread.java:5584) at java.lang.reflect.Method

Android Studio - Could not find org.jetbrains.kotlin:kotlin-stdlib:1.1.3-2

社会主义新天地 提交于 2021-01-28 05:34:22
问题 I was tring to compile my project in Android Studio (using Java) and the following error appeared: Could not find org.jetbrains.kotlin:kotlin-stdlib:1.1.3-2. Searched in the following locations: - https://maven.fabric.io/public/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.pom - https://maven.fabric.io/public/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.jar - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib

Could not find support-fragment.jar (com.android.support:support-fragment:27.0.2)

删除回忆录丶 提交于 2021-01-28 01:48:00
问题 I cloned my project and opened with Android studio, but the build fails with the below error and same project is working fine for others . What went wrong: Could not resolve all files for configuration ':app:flavorUnsignedReleaseCompileClasspath'. Could not find support-fragment.jar (com.android.support:support-fragment:27.0.2). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-fragment/27.0.2/support-fragment-27.0.2.jar 回答1: Just had the issue

DexArchiveBuilderException: Failed to process /xxx/.gradle/caches/transforms-1/files-1.1/play-services-location-11.2.2.aar

你离开我真会死。 提交于 2021-01-27 12:00:02
问题 When I try to compile my project I get this weird error: What went wrong: Execution failed for task ':android:transformClassesWithDexBuilderForProdDevelopmentDebug'. com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/.../.gradle/caches/transforms-1/files-1.1/play-services-location-11.2.2.aar/f5b9886774f73d8b64cfd9701f91e8cc/jars/classes.jar What I tried:

Include aar into aar

僤鯓⒐⒋嵵緔 提交于 2021-01-27 10:47:37
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Include aar into aar

安稳与你 提交于 2021-01-27 10:46:31
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Include aar into aar

牧云@^-^@ 提交于 2021-01-27 10:45:30
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Include aar into aar

流过昼夜 提交于 2021-01-27 10:45:07
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Include aar into aar

。_饼干妹妹 提交于 2021-01-27 10:44:16
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Unable to build : How to add Android Build Config for new Module

Deadly 提交于 2021-01-27 07:16:18
问题 Now i am converting my android code to modularized architectural approach. Facing issues when trying add a dependency on "app" module from "chat" module. I have the following build config for the "app" module. android { lintOptions { checkReleaseBuilds false abortOnError false } signingConfigs { companydevconfig { keyAlias 'company' keyPassword '123456' storeFile file('../app/jksFils/company_dev.jks') storePassword '123456' } companyqaconfig { keyAlias 'company' keyPassword '123456' storeFile