Tag: android-studio

Android studio gradle duplicate files dagger compiler

having strange problem after updating android studio to 0.4.0 and gradle plugin to 0.7.1 and gradle version to 1.9 with dagger compiler build.gradle android { packagingOptions { exclude ‘META-INF/DEPENDENCIES.txt’ exclude ‘META-INF/LICENSE.txt’ exclude ‘META-INF/NOTICE.txt’ } } dependencies { compile ‘com.android.support:support-v4:+’ compile ‘com.android.support:support-v13:19.0.+’ compile ‘com.google.code.gson:gson:2.2.4’ compile ‘com.squareup.dagger:dagger:1.2.0’ compile ‘com.squareup.dagger:dagger-compiler:1.2.0’ } on build getting this error Execution failed […]

advanced profiling build error

I’m trying to enable the “Advanced profiling” in the new Android Studio 2.4 preview 2, but I’m getting build error in message log: Information:Gradle tasks [:app:assembleRelease] Error:Execution failed for task ‘:app:transformClassesWithProfilers-transformForRelease’. > java.lang.IllegalArgumentException (no error message) Information:BUILD FAILED Information:Total time: 2.47 secs Information:1 error Information:0 warnings Information:See complete output in console I’m trying to do […]

Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes

Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes. Cursor is randomly disappear while coding in Android Studio. Currently using version 1.5.1 Some time cursor is only visible in one file either in java or xml Right click is working but cursor is not visible in java/ or […]

Debug App in Galaxy S5

I am building an Android app for my company, using Android Studio 1.5.1 . I’ve discovered that the app won’t work on some Galaxy S5 phones. These phones just show a white screen when the app runs. This error happens on Galaxy S5 devices with Android version 5.1.1 But not on an Galaxy S5 Device […]

Custom Lint Rule not listed in eclipse / android studio

I have created custom android Lint check rule it works well when I run it from command line but Android Studio does not take that rule when checking it with “Inspect Code”.I have selected all the Lint Rules in Inspection Profile of android studio. What I did is Created JAR with custom lint check rule […]

Separating integration tests from unit tests in Android Studio

I’m trying to separate out integration tests in Android Studio 0.9. I have added the following to the build file: sourceSets { integrationTest { java.srcDir file(‘src/integrationTest/java’) } } task integrationTest(type: Test) { testClassesDir = sourceSets.integrationTest.output.classesDir classpath = sourceSets.integrationTest.runtimeClasspath } I’ve run into a couple of issues: The task will run but it doesn’t have the […]

“Please specify Android SDK” in Android Studio 0.2

I’m trying to run AVD/SDK manager from Android Studio. Each time the dialog pops up. It’s strange because i’m already specified Android SDK. Is there any another place where i should add Android SDK path ? Thanks

Questions about calabash-android support in Android Studio: Ruby, Editing features and steps, Launching tests

I’m working with Android Studio on Windows 7, 64 bit. I’m a noobie on Android Studio (or any Intelij IDE). I downloaded and installed Ruby 1.9.3, The Ruby DevKit and calabash–android and I can successfully run Cucumber tests on my Android app using the command line (calabash-android run ) I also managed to install the […]

Android – MultipartEntity and dependencies

I recently migrate my project from Eclipse to Android Studio (I do not fully control this IDE yet). In this project, I have a file uploader AsyncTask which send multipart over http. To do this, I use org.apache.httpcomponents. I created following dependencies: dependencies { compile fileTree(dir: ‘libs’, include: [‘*.jar’]) compile ‘org.apache.httpcomponents:httpcore:4.4’ compile ‘org.apache.httpcomponents:httpmime:4.4’ … } […]

No, minSdk(API 15) > deviceSdk(API1) in android studio

I am a newbie in android development. Yesterday, I have setup my environment in windows 8, I have downloaded android SDK, when i run it, asked me to install some tools. I have installed all. After that i tried creating a sample project, then I run it on my phone connecting with USB. I am […]

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