build.gradle

Android build release failed with Caused by: java.lang.ArrayIndexOutOfBoundsException: 213 (proguard issue)

元气小坏坏 提交于 2019-12-11 10:24:48
问题 My project is built fine with debug build variant, but with release variant Android Studio throws: Caused by: java.lang.ArrayIndexOutOfBoundsException: 213 What could be the issue? If I set minifyEnabled false in build gradle for release build variant then it is being built ok, but it's not good Update I tried to add to proguard-rules.pro -keepnames class com.google.android.gms.** {*;} And it builds but I don't like this solution, I don't want to keep everything of that com.google.android.gms

Include jar files in gradle project [duplicate]

守給你的承諾、 提交于 2019-12-11 09:03:10
问题 This question already has answers here : How to add local .jar file dependency to build.gradle file? (16 answers) Closed last year . I am trying to include a local jar file in my "Java" gradle project. I have added jar files in my "main/resource" folder of project. and in build.gradle added following lines :- compile files('./src/main/resources/abc.jar') It is not showing me any error at compile time. But when i run my project it is showing me following error:- "Caused by: java.lang

Main class not found when using Manifest jar with JavaExec in Gradle

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 08:56:57
问题 I have the below gradle script from the Jhipster framework. It is used to run Gatling tests and due to the command line limit on windows I have tried using a manifest only jar approach. A detailed discussion regarding this can be found here Jhipster issue But the below script seems to generate the Manifest jar properly but JavaExec is unable to find the main class, some pointer on this would be really helpfull. A console log of error is below as well I have posted this on the gradle forum

Android studio, import class disappear from gradle file

一笑奈何 提交于 2019-12-11 07:16:24
问题 This is a little weird, I have a gradle.build file: apply plugin: 'com.android.application' android { apply from: '../dev-tools/gradle/common-cyborg-app.gradle' defaultConfig { applicationId "com.nu.art.cyborg.demo" } defineDefaultVariantsAPK("dev-project") } when I add the following import: import com.android.build.OutputFile the import just disappears.. really there is no other way to describe it. I've cleared caches and restarted, cleaned the project and nothing. Every time I paste the

Android SDK 26 build error

↘锁芯ラ 提交于 2019-12-11 07:07:39
问题 After I updated to SDK version 26 I tried to build an apk but got this error: Error:Execution failed for task ':app:transformClassesWithFirebasePerformancePluginForFacebookDebug'. > android/support/v7/app/ActionBarActivity Stay with SDK version 25 is fine but got error message in build.gradle said: all com.android.support libraries must use the exact same version Dependency Report (where it failed): Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint

Not able to Upload 64-bit build in Google play Store

百般思念 提交于 2019-12-11 06:33:41
问题 We are trying to upload the 64bit & 32bit build, according to the recent Google policy change. We have included respective abifilter " ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' " in the Build.gradle. We were able to generate the build but when we upload the build to Play console for Beta review. It gives a warning saying " Release is not compliant with 64-bit Google Requirement ". We tried all approach, generating 4 builds ( x86,x86_64,armeabi-v7a,arm64-v8a ), generating two

Unable to merge dex Android Studio error [duplicate]

馋奶兔 提交于 2019-12-11 06:19:54
问题 This question already has answers here : Unable to merge dex (60 answers) Closed last year . This is build.gradle (Module:app) : apply plugin: 'com.android.application' apply plugin: 'me.tatarka.retrolambda' android { compileSdkVersion 23 buildToolsVersion '23.0.3' defaultConfig { applicationId "com.demo.appdemo" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard

targetSdkVersion gradle strange value

拜拜、爱过 提交于 2019-12-11 06:17:42
问题 So, I cloned this project from Github and while going through its build.gradle , I found this strange configuration, particularly for targetSdkVersion . Now, before I jump into the details of what it is, let me mention that the project has two modules - app (the main one) and callrecord (encapsualting the call recording functionality) Here is the build.gradle file for the same: apply plugin: 'com.android.application' android { compileSdkVersion project.sdk defaultConfig { applicationId "com

Run gradle task after project is built with distribution plugin

こ雲淡風輕ζ 提交于 2019-12-11 06:08:43
问题 I'm using gradle 4.1 My project has five modules. After build I generate five jars in each module. My goal is to create a zip archive and upload it to artifactory server. I can only generate my zip deploy artifact with my jars only when build of other modules is complete. I see that it copies jars from libs directory, but I'm looking for a way to do this after the overall build of the project. I saw some examples with dependsOn, but it doesn't seem to be working. Here is what I have: apply

Android-Studio Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands

寵の児 提交于 2019-12-11 06:08:12
问题 Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2520Library :app:prepareComAndroidSupportAppcompatV72520Library :app:prepareComAndroidSupportConstraintConstraintLayout101Library :app:prepareComAndroidSupportSupportCompat2520Library :app:prepareComAndroidSupportSupportCoreUi2520Library :app