Gradle android build for different processor architectures

As of Android Gradle Plugin version 13 you can now generate seperate APK’s using the new “split” mechanism. You can read about it here. The default file structure for placing your .so files is: src -main -jniLibs -armeabi -arm.so -armeabi-v7a -armv7.so -x86 -x86.so -mips -mips.so Note that the name of the .so file is unimportant … Read more

\build\intermediates\res\resources-anzhi-debug-stripped.ap_’ specified for property ‘resourceFile’ does not exist

Having same issue ! So instant run is not compatible with shrinkResources 1) if use Android Studio 2.2 shrinkResources false buildTypes { release { signingConfig signingConfigs.release minifyEnabled false shrinkResources false zipAlignEnabled true debuggable false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } } 2) if use Android Studio 2.0 open setting now run your project

Test Artifact selector missing/gone from Build Variants in Android Studio 2 Beta 5

I discovered this in the release notes for Android Studio 2.0 Preview 5: “The experimental test artifacts feature (where both unit test and instrumentation tests are enabled simultaneously in the IDE) has been improved further and is now enabled by default.” To disable the simultaneous building of unit and instrumentation tests, go here: File Menu … Read more

Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.1-all.zip’

It could be that the gradle-2.1 distribution specified by the wrapper was not downloaded properly. This was the root cause of the same problem in my environment. Look into this directory: ls -l ~/.gradle/wrapper/dists/ In there you should find a gradle-2.1 folder. Delete it like so: rm -rf ~/.gradle/wrapper/dists/gradle-2.1-bin/ Restart IntelliJ, after that it will … Read more

Failed to resolve: com.android.support.design:25.4.0

Important: The support libraries are now available through Google’s Maven repository. You do not need to download the support repository from the SDK Manager. For more information, see Support Library Setup. Step 1: Open the build.gradle file for your application. Step 2: Make sure that the repositories section includes a maven section with the “https://maven.google.com” … Read more

Android Studio and Gradle build error

If you are using the Gradle Wrapper (the recommended option in Android Studio), you enable stacktrace by running gradlew compileDebug –stacktrace from the command line in the root folder of your project (where the gradlew file is). If you are not using the gradle wrapper, you use gradle compileDebug –stacktrace instead (presumably). You don’t really … Read more

tech