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
0
votes
1 answer

Android Studio: Build another instance of application for testing

I have my android application (created in Android Studio) installed on my mobile device. I need to install another instance of this application (for testing on staging server, not production) with a few small fixes - such as url paths. I know that…
ukson
  • 125
  • 4
  • 10
0
votes
1 answer

Bug trying to access sharedpreferences

I don't know if the problem is the Android Studio 2.0, but now I can't open shared preferences. This is the error that it returns, after I click the menu button and the app crash: 04-21 16:46:12.412 10969-10969/com.example.sdilab.dica…
0
votes
0 answers

Estimate dimensions of objects in video and display them as overlays

I am trying to develop an application to measure the dimensions of an object in video and overlay them in the same video (e.g.h eight and width). Similar to what is done in this YouTube video: The code I am using: > Andoid MAin Activity …
0
votes
1 answer

NDK in Android Studio not working for C++ files

In latest Android Studio 2.0 I am trying to run the ndk example, but build is breaking with the following error: /Users/ktulsia/AndroidStudioProjects/example/app/src/main/jni/hello-jni.cpp Error:(18, 18) string: No such file or directory compilation…
Kishore Tulsiani
  • 1,106
  • 13
  • 29
0
votes
2 answers

My Activity is crashing my app

In my app the activity is crashing when the it is trying to read some text from an editText and displaying it onto another activity. Here is the code that is getting the text from the editText: Intent intent = new Intent(this,…
party58965
  • 41
  • 1
  • 5
0
votes
0 answers

Cannot run tablet emulator in android studio

i have upgraded my android studio from 1.0.0 to 2.1 preview 4. The problem is that my tablet emulator is not running now. Actually emulator starts but APK file does not launch in the emulator This is my sdk manager and this is my tablet…
0
votes
3 answers

how to run same android app with different name in one device?

I build a two apk from same source code . both have Different name,icon background .i changed only UI and app name tow app have same package, my problem is I can't install this both app on same device .when I try to install facing error message .…
Dhanish
  • 5
  • 7
0
votes
1 answer

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, define JAVA_HOME variable in Computer >System…
AtSim1
  • 115
  • 1
  • 1
  • 8
0
votes
2 answers

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 Assert like it used to be?
Magnus
  • 17,157
  • 19
  • 104
  • 189
0
votes
1 answer

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" //useLibrary =…
Fangxing
  • 5,716
  • 2
  • 49
  • 53
0
votes
1 answer

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 = LayoutInflater.from(App.instance).inflate(R.layout.item_post,…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
1 answer

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 sometimes occurs after a network connection timeout.)…
0
votes
1 answer

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 start on the other phone, I don't get the popup to…
Christine
  • 5,617
  • 4
  • 38
  • 61
0
votes
1 answer

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. However preview screen displays layout files…
0
votes
1 answer

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 the app module. I've tried clean, rebuild, make,…
James Funk
  • 264
  • 4
  • 10