Tag: android-gradle

Assertion Error in Android Studio when trying to compile the working project

While I was trying to build my working project in the updated Android Studio (0.3.6), I got the below error message. It works fine when I build via CLI. java.lang.AssertionError at com.android.tools.idea.gradle.compiler.AndroidGradleBuildProcessParametersProvider.getVMArguments(AndroidGradleBuildProcessParametersProvider.java:101) at com.intellij.compiler.server.BuildManager.launchBuildProcess(BuildManager.java:921) at com.intellij.compiler.server.BuildManager.access$1900(BuildManager.java:121) at com.intellij.compiler.server.BuildManager$11$2.run(BuildManager.java:666) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:37) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:435) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at […]

Jenkins build failed due to missing android SDK

As the title says my jenkins build fails due to not finding the android sdk dispite it being located in the environments path. Here is the console logs Started by user anonymous Building in workspace /Users/lmnapp/.jenkins/jobs/Android_app_master/workspace > git rev-parse –is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://bitbucket.org/xxxxx-xxx/xxxx-android-app.git # […]

Failed to resolve: com.android.support:cardview-v7:26.0.0 android

i try to add recyclerview to my project and get this error appear and i added it from android studio dependencies

How Do I Stop Gradle for Android From Building *All* Library Module Build Types On Every Build?

This question already has an answer here: Why does Gradle build my module in Release mode when the app is in Debug 4 answers

Execution failed for task ':app:packageDebug' – Failed to read zip file

Without any changes in my code, suddenly i get this error when I try to run my app: What went wrong: Execution failed for task ‘:app:packageDebug’. com.android.builder.packaging.PackagerException: java.io.IOException: Failed to read zip file ‘C:\Users\Eliran\AndroidStudioProjects\Forum\app\build\outputs\apk\app-debug.apk’. I have no idea why its trying to read the apk as zip file. If I restart Android Studio, I can […]

How to exclude a file from an .AAR Android library archive with gradle

I am trying to create an AAR file for a library Android project using Android Studio and gradle. I want to exclude from this archive specific folders and files but I cannot find a working solution. The project has 2 flavours. app/ |–libs/ |–src/ |–flavour1/ | |–java/ | |–a1/ | | |–class_File1.java |–flavour2/ | |–java/ […]

Enabling externalNativeBuild with ABI split

I’ve switched to cmake build system from ndk-build. But can’t get APK split function to work. Here is my app build.gradle file The result of the build is only one file – foo.bar-armeabi-v7a-release-1.5.1.apk. If I’m building an app for x86 emulator, the result is foo.bar-x86-release-1.5.1.apk buildscript { repositories { maven { url ‘https://maven.fabric.io/public’ } } […]

APK size is bigger than expected – android studio

My project content size like this, Main Project (Source & asset size 513KB) Module 1 (Source & asset size 135KB) Module 2 (Source & asset size 80KB) And the apk (signed, debug both) size is 4.87MB. Also tried ProGuard nothing changed. I do not understand the reason of this. Even I have not added any […]

Access to the Dex is now impossible, starting with 1.4.0

when i want to sync gradle i get this error: Error:Access to the dex task is now impossible, starting with 1.4.0 1.4.0 introduces a new Transform API allowing manipulation of the .class files. See more information: http://tools.android.com/tech-docs/new-build-system/transform-api When i click the link, i don’t find any solution. Anyone have solution thanks.

Android gradle build: running assembleDebug makes release tasks of project dependencies being called

When running assembleDebug, the release related tasks of projects I depend on are called. e.g. I have a project called ‘x’ which depends on ‘y’. When I gradle assembleDebug it calls y:mergeReleaseProguardFiles, packageReleaseAidl, etc… etc..

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.