Questions tagged [android-studio-2.0]

Android Studio is the official IDE for Android application development. In version 2.0 it is based on IntelliJ 14.

Android Studio is the official IDE for Android application development, based on IntelliJ IDEA. On top of the capabilities you expect from IntelliJ, Android Studio offers:

  • Flexible Gradle-based build system
  • Build variants and multiple apk file generation
  • Code templates to help you build common app features
  • Rich layout editor with support for drag and drop theme editing
  • lint tools to catch performance, usability, version compatibility, and other problems
  • ProGuard and app-signing capabilities
  • Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine
  • And much more

Reference: https://developer.android.com/tools/studio/index.html

In version 2.0 it is based on IntelliJ 14.

345 questions
646
votes
27 answers

Android Studio: /dev/kvm device permission denied

When I try to run my Android app on an emulator I get this error: /dev/kvm permission denied. I checked the permissions and added the user I am currently logged in with to the kvm group. What is wrong?
florian.R
  • 6,461
  • 3
  • 8
  • 4
103
votes
6 answers

Split lib_main was defined multiple times

Split lib_main was defined multiple times In "com.android.tools.build:gradle:2.0.0-alpha3" build success, But the errors that occur in the "com.android.tools.build:gradle:2.0.0-alpha5". finally instant run work!!…
shinhyo
  • 1,128
  • 2
  • 7
  • 10
74
votes
4 answers

Could not find method android() for arguments

I've been trying to import a project to Android Studio and this is where I am stuck, there is a similar question on Stack Overflow but it did not provide a solution to my particular error. This is my error log: C:\
42
votes
1 answer

When adding Facebook SDK " appeventslogger.activateapp(this)" is shown deprecated

Using Facebook SDK 4.5. Tried using SDK 4.5 to 4.11. Problem still facing. AS per this changelog : https://developers.facebook.com/docs/android/change-log-4.x Its changed to AppEventsLogger.activateApp(Application) But I am facing trouble while…
Ashish Dung Dung
  • 543
  • 1
  • 5
  • 10
40
votes
9 answers

Gradle build: Execution failed for task ':app:lint'

I'm using Android Studio 2.0 and I was trying to running my program when something strange happened. I ran the build command of the gradle and I got this error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
38
votes
12 answers

Not able to debug app on android device - Android Studio 2.0

I am not able to debug an app on my device (Asus Zenphone 2) after I updated android studio to 2.0. I keep seeing below message in debug tab right after I click on debug icon in Android studio. Message in debug tab in Android Studio…
t4nhpt
  • 5,074
  • 3
  • 31
  • 41
34
votes
8 answers

RecyclerView.onBindViewHolder called only once

After many hours of researching I am finally consulting official help. I have a RecyclerView.Adapter and RecyclerView.ViewHolders that worked perfectly. But for some reasons I do not understand, RecyclerView.Adapter.onBindViewHolder is not called…
34
votes
10 answers

Error while Installing restart patches when launching android app with Android Studio 2.0

Currently I'm using Android Studio 2.0 and installing my APK into my Samsung device (S6). However, when rebuilding my code and running it again I receive the following error: Error installing cold swap patches:…
30
votes
4 answers

Getting "EnclosingMethod" errors on building in Android Studio 2

I am getting below build errors when I am running the app in Android Studio 2. These errors were not there when I was using earlier version of Android Studio. Error:warning: Ignoring InnerClasses attribute for an anonymous inner…
Amit Tiwari
  • 3,478
  • 6
  • 26
  • 69
29
votes
14 answers

Android studio 2.0 gradle transformClassesWithDexForDebug fails when using button "run"

I have a problem after migration from android studio 1.5 to 2.0 In one of my project (only one) i can't use android studio run button, because then, build fails on gradle task "transformClassesWithDexForDebug" with…
wojciech_maciejewski
  • 1,207
  • 1
  • 10
  • 27
26
votes
9 answers

Why is AppTheme.NoActionBar not working?

I've created an Android app in Android Studio, and it has created these styles by default: However, in an…
Can Poyrazoğlu
  • 29,145
  • 40
  • 152
  • 327
26
votes
5 answers

Proguard Printmapping not working in Android Studio 2.0.0 (and 2.1.0)

Using gradle wrapper 2.10, and Android Gradle build tools 2.0.0-beta7 2.1.0 From my build.gradle: buildTypes { all{ minifyEnabled true proguardFiles = [getDefaultProguardFile("proguard-android.txt"),…
VicVu
  • 6,655
  • 5
  • 50
  • 89
21
votes
6 answers

Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.3.0) and test app (23.1.1) differ

I came across this exception while adding espresso to an android project. I already try the link that comes with this exception **Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.3.0) and test app…
axcellinx
  • 296
  • 1
  • 2
  • 5
21
votes
3 answers

Android Studio 2.0 instant run not working but appear this tips?

When click the instant run,appear below tips: you currently have an active Run session of the same launch configuration,do you want to kill the session and proceed with the current launch Anyone else can solve the issue? thanks!
anynew
  • 217
  • 2
  • 8
20
votes
4 answers

Android Instant Run First-time takes too much time to launch app after installed

I have installed android-instant-run introduced in android-studio-2.0 I am getting problem while running my app first time. Its appearing with blank screen for a 5 to 10 seconds then after launching activity. It takes time to run first time only…
Pratik Butani
  • 51,868
  • 51
  • 228
  • 375
1
2 3
22 23