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-2.0
Filter by
Sorted by
Tagged with
1 vote
0 answers
240 views

error doesn't displaying in logcat android 6.0 - android studio 2.0

I making a demo app in the android studio 2.0 using a cellphone that have android 6.0 and forcing an error, but while in my old device running in android logcat display the error : Could not find ...
Paul's user avatar
  • 125
34 votes
10 answers
20k views

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 ...
Victor Oliveira Antonino's user avatar
0 votes
1 answer
1k views

Android Studio wont start, Failed to create JVM

I am trying to start my Android Studio v2.0 but it wont start. i get this error: Failed to create JVM: error code -6. JVM path: C:\Program Files\Java\jdk-9 If you already have a 64-bit JDK installed,...
AtSim1's user avatar
  • 115
0 votes
2 answers
598 views

Log.wtf() displays as Log.e() in Android Studio 2.0?

I have styled my LogCat levels using Preferences -> Editor -> Colors & fonts -> Android Logcat, but all of a sudden when I do Log.wtf() it displays with the style set for the Error level, not ...
Magnus's user avatar
  • 17.9k
3 votes
2 answers
579 views

Load Multiple Images in ListView

I was following a NewBoston Tutorial (https://www.youtube.com/watch?v=nOdSARCVYic&list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl&index=48) He showed how to put an image into a list but he never ...
BrandonMayU's user avatar
3 votes
2 answers
784 views

Android studio Gradle DSL method not found: compile() while adding slf4android dependency

I'm trying to use slf4android dependency from https://github.com/bright/slf4android but having problem with gradle sync. Build.gardle (Project) buildscript { repositories { jcenter() ...
Vinod Sharma's user avatar
7 votes
1 answer
16k views

Gradle sync failed: Failed to update Android plugin to version '2.0.0'

I've recently updated Android Studio to 2.0. I am working on a part time course and I have to work on a project provided. When gradle tried to build the project a dialog popped up asking me to ...
DJ-DOO's user avatar
  • 4,649
0 votes
1 answer
3k views

buildToolsVersion is not specified, all "apply plugin: xxxx " is in app/build.gradle

my module build.gradle apply plugin: 'com.android.application' model { android { // 编译SDK的版本 compileSdkVersion = 23 // build tools的版本 buildToolsVersion = "23.0.3"...
Fangxing's user avatar
  • 5,926
1 vote
0 answers
21 views

Android emulator can't be stopped after leaving it for some hours

I've updated to Android Studio 2.0. I'm trying to debug on this target VD: google_apis_x86 (API level 19). At first: it can be closed at any time by pressing the X button in the top right corner of ...
Tamás Bolvári's user avatar
0 votes
1 answer
517 views

Java code executing incorrectly when debugging with Android Studio

I have this code in my Android app: @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { if(viewType == POST_VIEW_TYPE){ View view = ...
Can Poyrazoğlu's user avatar
0 votes
1 answer
1k views

Some gradle issue after updating Android Studio to v2.0

I have updated Android Studio, and when opening a project done in the 1.5 version this is the error I am getting: Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this ...
Honey's user avatar
  • 55
0 votes
1 answer
284 views

In Android Studio I can't seem to run my app on two devices simultaneously

I have two phones connected to my computer, via USB. I run my Android app from Android Studio on one of the phones. Then I want to run the same app, same version, on the other phone. But it doesn't ...
Christine's user avatar
  • 5,567
14 votes
2 answers
7k views

How to stop debug without closing app in Android Studio 2

when I debugging my application and if I click on th Stop button - debugging stopped work - and! - my application closing. (I think android studio just kills proccess). How can I stop debugging ...
Artem's user avatar
  • 4,599
-2 votes
4 answers
124 views

Confirm closing the app on back pressed ONLY in MainAcitity?

I want the user to confirm closing my app. I use the following code for that in my MainActivity: @Override public void onBackPressed() { if (this.lastBackPressTime < System.currentTimeMillis() ...
AlexioVay's user avatar
  • 4,460
0 votes
1 answer
855 views

Android: unknown xml attributes after Android Studio update

Recently I've updated the Android Studio up to the version 2.0. Also I've updated build gradle tools to the 2.0.0. After that many warnings like "Unknown attrubute..." appeared in my xml layout files. ...
Victor Semenovich's user avatar
20 votes
4 answers
5k views

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 ...
Pratik Butani's user avatar
5 votes
1 answer
2k views

android studio log cat automatically newline

I use Android studio 2.0. Logcat show logs, but little bit odd. I want to see one line. but it don't work. Former Android studio 1.5 is show one line. Please let me know how do that. https://i....
taehunkim's user avatar
0 votes
1 answer
47 views

Android Studio 2.0 - Rebuild backend classes

I'm building an Android app with the backend running on GAE. It all works great, love it. However, if I do any updates to my UserBean class in the backend module, the changes don't get replicated to ...
James Funk's user avatar
17 votes
2 answers
3k views

Starting an app with android studio 'instant run' is very slow

I just enabled instant run for my project. Building and uploading is faster but my app startup time has increased from a few hundreds of milliseconds to a few seconds. I'm generally happy with that ...
mbonnin's user avatar
  • 6,953
0 votes
1 answer
216 views

Android Studio 2.0 does not start download

I wish update Android Studio to 2.0. However, in the Tools-> Check for Updates section: Selecting Updates, displays: Selecting Download (in the top image) redirects to: http://tools.android.com/...
Sauron's user avatar
  • 6,519
1 vote
1 answer
419 views

android studio libraries build with ndk-build aren't updated on run

I use android studio for my project because of the NDK support it now has, but i still use makefiles because there are still things I can't do by using gradle. I compile my source c/cpp files with ...
K. John's user avatar
  • 11
0 votes
1 answer
57 views

Android Studio 2.0 basic runtime logcat error message

I have upgraded to android studio 2.0 last week, but now every time I run any app I get the following error messages in the logcat. I have posted 2 screen shots below. The first one shows an app that ...
tb08's user avatar
  • 57
2 votes
2 answers
314 views

Can't install or deinstall any Plugin in Android Studio 2.0

I am trying to install a Plugin (Kotlin) in Android Studio 2.0 on Windows 7. Easy Peasy - I go to Settings > Plugins > Install JetBrains plugin... > Kotlin > Click on Install > Wait ...
yennsarah's user avatar
  • 5,487
29 votes
14 answers
44k views

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 "...
wojciech_maciejewski's user avatar
16 votes
4 answers
3k views

Android Studio 2.0 launch APK on another device

Since Android Studio 2.0 and its reworked "build / run" mechanism, I can't "launch" an APK on a second device anymore. Once the APK has been loaded on the first device, I can't choose to launch a ...
Nino DELCEY's user avatar
2 votes
0 answers
186 views

Android Studio gradle 2.0 build successful, but toast error

Android studio update to 2.0 toast the below error I don't know why!
T.Hui's user avatar
  • 41
15 votes
1 answer
4k views

Incompatible Bitbucket plugin 1.2.1 for Android Studio 2.0/2.1/3.0+

I have updated version of my Android Studio to 2.0 and is facing incompatibility issue of bitbucket plugin 1.2.1 when loading Android Studio. Android Studio's Event log is saying: "Plugin Error ...
Hassan Jamil's user avatar
8 votes
4 answers
21k views

How to update SDK in Android Studio in the background

Today I'm trying to update the SDK in Android Studio on my Ubuntu, and looking for the menu that make the download process running in the background. So I want to download the SDK and continue to work ...
Gujarat Santana's user avatar
4 votes
0 answers
1k views

Realm error "transformClassesWithRealmTransformerForDebug" failed to resolve types

I'm using Realm on my android app, but I've got a strange error that is: Error:Execution failed for task ':app:transformClassesWithRealmTransformerForDebug'. javassist.CannotCompileException: ...
Cristian's user avatar
10 votes
2 answers
29k views

Android Studio, Git and three ways merge

On Android Studio, I created a new branch from the master and commited the new branch two times. Then I checkedout the master and commited it one time. So I have two branches with two distinct ...
GPack's user avatar
  • 2,504
2 votes
1 answer
875 views

android studio2 emulator can't start

I use an Android Studio 2.0 created a project. When I start AVD, I find AVD emulator can't start. I changed the emulator RAM to 768M, but it also failed I updated tool, but it's still failing My SDK ...
kwin zoo's user avatar
7 votes
7 answers
24k views

Emulator not working in Android Studio 2.0

I am using Android Studio 2.0 Stable version. Whenever I click on the play button on the device to run it shows starting AVD progress in android studio and after completing it's progress nothing ...
Burhanuddin Rashid's user avatar
0 votes
1 answer
2k views

Appium - Cannot launch Android emulator on Windows

I want to launch Appium with Android emulator on Windows. I want to test ApiDemo.apk. The following graphic shows my Appium GUI configuration: The following graphic shows my starting emulator: The ...
Steve Murdock's user avatar
1 vote
1 answer
286 views

Android Studio 2, Percent Layout problems

I'm using PercentRelativeLayout in my apps (you have to specifically import support for this layout). With this layout, you don't have to specify layout_width and layout_height (you use app:...
OhDannyBoy's user avatar
2 votes
2 answers
2k views

Cannot start application in android studio emulator since 2.0 update

I recently (2 days ago) updated my Android Studio to version 2.0. After having troubles with my previously working application on a real device, I had to activate MultiDex to remove errors in the ...
Slander's user avatar
  • 225
11 votes
1 answer
9k views

SVG file warning message in Android Studio editor

I'm using Android Studio 2.0 with SVG2VectorDrawable: If I open a svg file for edit from the \RAW resource folder, the file i underlined with the red color and a warning message "element svg must be ...
Seraphim's's user avatar
  • 12.7k
0 votes
0 answers
465 views

Error when ProGuard Enabled : Uncaught translation error

Here is the the Message : :app:processReleaseJavaRes UP-TO-DATE :flurry_lib:jar UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72300Library UP-TO-DATE :googleCloudMessaging_lib:...
Rohith Srinivas's user avatar
0 votes
1 answer
295 views

VectorDrawables and Instant Run with android gradle plugin

I have been using the latest android support library, Gradle plugin, android Studio as they release. As with last few releases of android support library, the feature to support vectorDrawables ...
Arnav M.'s user avatar
  • 2,610
5 votes
2 answers
89 views

Android Studio2.1 preview 5 on ubuntu unable to open the projects in

When android studio 2.1 preview 5 on ubuntu 14.04 unable to show the list of projects and unable to open any project, when try to open it shows below exception. Exception Can not load Project: ...
Maheshwar Ligade's user avatar
0 votes
1 answer
175 views

InstantRun: Couldn't apply code changes

Android Studio 2.0 added the new instant run feature, but it doesnt work.... InstantRun: Couldn't apply code changes java.lang.reflect.InvocationTargetException at java.lang.reflect.Method....
GregM's user avatar
  • 3,694
0 votes
0 answers
1k views

Listen for SMS in android

I followed a tutorial about listening for SMS in android, but I can't figure out why my code doesn't work. It compiles without errors, app runs, but I can't get toast to appear when message is ...
ikurek's user avatar
  • 604
21 votes
6 answers
19k views

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'. ...
axcellinx's user avatar
  • 296
6 votes
1 answer
840 views

Android Studio 2.0 update - public static volatile com.android.tools.fd.runtime.IncrementalChange

After I update with Android 2.0 a new field has been added into my models object public static volatile com.android.tools.fd.runtime.IncrementalChange com.pr4.models.User.$change What problem I have ...
turbandroid's user avatar
  • 2,296
6 votes
2 answers
12k views

There is no Blank Activity option in Android Studio 2.0 to create that

I Created a project using Android Studio 2.0 ,and now i want to create a blank activity , but there is no "Blank Activity" item in ( Right-Click on project package and then --> New -> Activity ) ...
SiaaaG's user avatar
  • 91
0 votes
1 answer
1k views

Where did the "Other Settings" go in Android Studio?

I can't seem to find the menu Settings > Other Settings Where is it hiding? ;)
Sebastian's user avatar
  • 2,936
0 votes
1 answer
3k views

Android Studio 2.0 Gradle Error [NoClassDefFoundError: Could not initialize class org.gradle.StartParameter]

Not sure what's going on. I just updated Android Studio from version 1.5.1 to 2.0 on Ubuntu 15.10 about an hour ago. It seems as though Gradle can't be found or is having issues. It would make sense ...
user3386826's user avatar
0 votes
2 answers
68 views

FragmentBuilder issue after updating Android studio to 2.0

Today I did update Android Studio to 2.0. And I faced with the problem: There weren't any problems with 1.5, but now there are. I'm using sockeqwe/fragmentargs library to communicate between ...
VLeonovs's user avatar
  • 2,243
0 votes
1 answer
661 views

How can I create the lbpcascade_frontalface.xml about OpenCV in Android Studio 2.0

I use the OpenCV Example named "openCVSamplefacedetection". There is a xml file "lbpcascade_frontalface.xml" How can I create this file by myself ? thanks a lot
William Liu's user avatar
-1 votes
1 answer
73 views

Error after upgrading android studio 1 to 2 , won't launch 💡

when i try to lunch android studio after upgrade i get Android studio Ver. info Java_Home environment variables
Mohamed Elrashid's user avatar
0 votes
2 answers
302 views

After updation Android studio 2.0 getting issue.

Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html Error:Execution failed for task ':...
Arun Ravichandran's user avatar

1
3 4
5
6 7