Tag: android-gradle

Packaging handheld and wearable Android app together from CLI

I’m trying to build a Phone+Wear app with NativeScript for Android. I have been able to build both separately and to run them on the Android emulator also. The problem is that I’m unable to package them properly, I mean, I can’t package them together in order to install only one APK, that will install […]

Gradle unable to delete directory due to .fuse_hidden

As I rebuild a Gradle project in Android studio, it gives me the following error: Gradle: Execution failed for task ‘:lib:clean’. Unable to delete directory: /path/to/project/lib/build/exploded-bundles/ComAndroidSupportAppcompatV71901.aar It turned out that the folder ComAndroidSupportAppcompatV71901.aar contains a file named .fuse_hidden0000175300000012 (or some other random file). I have googled for that and seems that it is kind of […]

Error:Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

After updating android studio to 1.1.0 in Ubuntu always showing this error.My logcat is: org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)** android studio 1.0,0.8 is working fine . **org.gradle.tooling.GradleConnectionException: Could not run build action using Gradle distribution ‘https://services.gradle.org/distributions/gradle-2.2.1-all.zip’. at** org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:59) at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57) at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at […]

Add productFlavor to experimental Android gradle plugin library

I’ve got a project that uses the experimental gradle plugin, i.e. 0.2.0. When I’ve got no productFlavor, I can perfectly integrate a library module in Android Studio and everything works perfectly. But when the library has a productFlavor, I main project doesn’t find the library classes. This fix does not appear to work with the […]

libs folder doesn't work in android studio

I am using the mac version of android studio 1.2 Beta 2, built on April 7, 2015. Gradle version 2.2.1 and Gradle plug-in version 1.1.0. After I create a new project, The following code exist by default in my app/build.gradle file. … dependencies { compile fileTree(dir: ‘libs’, include: [‘*.jar’]) } It means that any jar […]

How to call layout xml from another module

I am setting ContentView in MainActivity as setContentView(R.layout.activity_main); I have other module in package as well, for that module I defined in gradle file apply plugin: ‘com.android.library’ This once also has res/layout/activity_main.xml So can I call activity_main.xml from another module from MainActivity?

Lint error on Okio

I started getting this errors about **InvalidPackage: Package not included in Android** ../../../../../../../.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.6.0/98476622f10715998eacf9240d6b479f12c66143/okio-1.6.0.jar: Invalid package reference in library; not included in **Android: java.nio.file**. Referenced from **okio.Okio**. I am using: compile ‘com.squareup.okhttp:okhttp:2.5.0’ I did some reading on the same at following links: https://github.com/square/okio/issues/58 https://github.com/square/okhttp/issues/896 I have 2 questions for the same Question 1 :: What change […]

Gradle commands fail on API 23 Google API emulator image (armeabi-v7a)

I can’t seem to get Gradle commands from the command line to work with the API 23 Google API emulator image (Google APIs ARM (armeabi-v7a)) – I always get a com.android.ddmlib.ShellCommandUnresponsiveException. Steps to reproduce: Create an AVD with API 23 Google APIs ARM (armeabi-v7a) Clone https://github.com/googlemaps/android-maps-utils (or use your own project) Run gradlew installDebug from […]

Build gradle system app as part of AOSP build

I have a custom rom based on AOSP and I am working on a system app that is packaged during the rom build just like any other system app. Is it possible to switch this app to a gradle style app and build that specific app with gradle during the AOSP build? i.e. – Start […]

Error : cause android.compileSdkVersion is missing

I am recently started to work on the Android Studio. When I am doing sync with gradle then it is giving me a error . Error : Cause: android.compileSdkVersion is missing! Guys what could be reason for this, I already have same compileSDKVersion and build tool installed. I see many threads that saying to confirm […]

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