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.

347 questions
685
votes
29 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,851
  • 3
  • 10
  • 4
104
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!!…
Luke
  • 1,138
  • 2
  • 7
  • 10
102
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:\
54
votes
11 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…
44
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
  • 563
  • 1
  • 5
  • 10
41
votes
15 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,264
  • 4
  • 34
  • 43
35
votes
9 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,684
  • 6
  • 33
  • 75
30
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
  • 33,241
  • 48
  • 191
  • 389
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,277
  • 1
  • 12
  • 28
28
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"),…
Vic Vuci
  • 6,993
  • 6
  • 55
  • 90
24
votes
1 answer

An OAuth2 client already exists for this package name and SHA-1 in another project

I was practicing firebase CodeLab (Friendly Chat) for learning firebase with android. In that tutorials ,I made a project on firebase console named as "Friendly Chat" and then I add my android app package name and SHA-1 so that invites and Google…
Zaid Mirza
  • 3,540
  • 2
  • 24
  • 40
21
votes
4 answers

Is it possible to run Android Device Emulator (via Android Studio 2) on VMWare?

I have been running Android Studio 1.5.1 doing development on a WMWare copy of Windows 2012 R2 and everything works fine. I've been able to run the device emulator with no problems and start various versions of Android running in AVD. Android…
raddevus
  • 8,142
  • 7
  • 66
  • 87
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
1
2 3
23 24