Tag: android-studio

Android build will not merge manifests from libraries

We have multiple projects, depending on a many Android lib modules. To avoid duplicated xml tags in the apps manifests, we put the relevant receivers, services and activities in their respective modules. Till today, we used: Android Studio: 2.2.1 gradle: 2.1.3 buildToolsVersion: 23.0.3 Today we’ve updated to: Android Studio: 2.3 gradle: 2.3.0 buildToolsVersion: 25.0.0 Up […]

How does Android Studio gradle plugin manage resource files (AndroidManifest.xml)?

I have my project’s build.gradle located in myApp/app/ directory. AndroidManifest.xml is in myApp/app/src/main directory, at the same level as java/ and res/ directories. When synchronizing the project, I receive notification about missing manifest file. No wonder, actually, when the path is really incorrect. Source file is set as: sourceSets { main { manifest.srcFile ‘src/main/AndroidManifest.xml’ } […]

Android Studio Could not call IncrementalTask.taskAction() on task ':project:dexDebug'

I recently decided to switch from Eclipse to Android Studio. I imported a project I was working on and am now getting this error when I try to run the project. Gradle: Execution failed for task ‘:project:dexDebug’. > Could not call IncrementalTask.taskAction() on task ‘:project:dexDebug’ I’ve been cruising this site for 2 days now and […]

'./gradlew -Dtest.single=SimpleTest test' runs all tests I have

My project is normal Android project created on Android Studio. I googled a lot to run a single test(tests in SimpleTest, 1 test in this case), everyone say that I should do like ./gradlew -Dtest.single=SimpleTest test in my root folder. or I did in my inner project folder ../gradlew -Dtest.single=SimpleTest test I tried so many […]

Android studio v0.3.2, gradle, google maps v2.0 Didn't find class “com.google.android.gms.maps.MapFragment

I have problem with Google Maps Android v2.0. Because i try a lot of options and I always get this stacktrace: 1-03 17:39:26.015 2398-2398/com.** E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.**/com.** .MainActivity}: android.view.InflateException: Binary XML file line #24: Error inflating class fragment at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) at android.app.ActivityThread.access$600(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) at android.os.Handler.dispatchMessage(Handler.java:99) […]

play_licensing throws AIDL error with downloader_library for APK Expansion with Gradle

I tried to use the APK Expansion libs zip_file and downloader_library (which requires play_licensing). zip_file worked fine since it has no dependencies, but play_licensing throws an error when I try a Gradle sync. Android Studio spits out this error log: Information:Gradle tasks [:app:generateGoogleDebugSources, :app:libs:downloader_library:generateDebugSources, :app:libs:play_licensing:generateDebugSources, :app:libs:zip_file:generateDebugSources] Information:/Users/faiz/Projects/Android/TogetherTime/app/libs/play_licensing/aidl/ILicenseResultListener.aidl:21 interface ILicenseResultListener should be declared in a file […]

Android studio Gradle Could not find method compile()

The past two days i have tried to find a solution to this problem but with no luck. I am trying to include GSON lib. Into my android project. Here is a picture of my folder structure: Now in my build.gradle i have the following: // Top-level build file where you can add configuration options […]

Import module or project as Library on Android Studio

I want to use HoloEverywhere (HE) Preferences AddOn with my live wallpaper project. The project is almost done, i just need it to look the same from android 2.3 to 4.4, so i went on and followed the guide to get HE from GitHub. After the checkout and the successful test of the “Demo” module, […]

Using Java 8 in android studio

This question already has an answer here: Is it possible to use Java 8 for Android development? 19 answers

IntelliJ/structural search: Remove useless methods that only call super method

In one of my Android projects (but not necessarily tied to Android) I have quite a few method calls that really do nothing but blow up the code and could be automatically removed. Examples: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { return super.onKeyDown(keyCode, event); } @Override public boolean onCreateOptionsMenu(Menu menu) { return super.onCreateOptionsMenu(menu); } […]

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