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

Instant run, targetSdkVersion > 20 and changes to AndroidManifes.xml: full build almost everytime

My project uses (in the gradle file) defaultConfig { applicationId "xx.xxx.xxxxx" versionCode code versionName "1.1.0" minSdkVersion 15 targetSdkVersion 22 } but the new Android Studio 2.0 IDE, perform a slow and full build…
Seraphim's
  • 12,559
  • 20
  • 88
  • 129
0
votes
1 answer

error when compiling studio app in android 2.0

Error While Compiling the app in android-studio-2.0 Newly updated, HELP I'm just creating a predesigned activity and compiling google 04-08 22:47:18.990 1019-1019/system_process E/BatteryService: usbOnlinePath not found 04-08 22:47:18.990…
Daniel
  • 25
  • 6
0
votes
0 answers

New branch on GIT project behavior

I created a new GIT repository enabling VCS for my project in Android Studio, made first commit, then created from master a new branch by right clicking on master and choosing New Branch option. Automatically it checked out the new branch. Ok. Then…
GPack
  • 2,494
  • 4
  • 19
  • 50
0
votes
1 answer

Error Rendercript Android Studio 2.0

Today, I have received new update from Android Studio with version 2.0. After update completed, I build app but encounter error message in build gradle Error:Renderscript support mode is not currently supported with renderscript target 21+ I'm…
Iris Louis
  • 297
  • 6
  • 19
0
votes
1 answer

Get measure of relative layout android?

I have an empty RelativeLayout. I must get height and width of layout (set to match the parent). I have tried to search online but, to no avail. This is my code, can you help me? When I launch the application it crashes in the getCoordinate method.…
0
votes
1 answer

Getting currently selected tab of a tabbed activity

So I am currently developing an app which displays a json file via cards in the main activity. Depending on which tab is currently selected in my tabbed activity, a method which downloads the json file decides what json file to download (I pass an…
just_deko
  • 1,024
  • 1
  • 14
  • 29
0
votes
0 answers

SQLite CREATE TABLE errors

UPDATE : The app now works again, however, it does not remember the information I want it to remember when I close it, which was the entire point of making the SQlite database. E.g. when I enter a homework task, and I close the app, it disappears…
0
votes
0 answers

Modify image before ZXing recognizes it

I'm an Android newbie I need to invert colors of a QR code captured by the camera (my codes will come as white-on-black) and then send it to ZXing to recognize the code (preferably on all Androids since 2.3.3). I've got the library dependency…
Val
  • 1,548
  • 1
  • 20
  • 36
0
votes
1 answer

Android Studio wrong calculate basic

Today, I am implement a basic calculation in AS and here is results: https://www.flickr.com/photos/139045967@N03/26159345381/in/dateposted-public/ 1.0f - 16.0f/100 = 0.84000003; // is right ? I am use MAC with AS 2.1 preview 5. Anyone help me this…
ZNApps
  • 55
  • 2
  • 8
0
votes
1 answer

Unable to start basic app due to error (UnsupportedOperationException: Can't convert to dimension: type=0x1)

I am learning to create a CardView. I am able to see what the layout will look like in the design tab of Layout file and in the preview section of text section of Layout. However, when I run the app on an emulator or android device it throws an…
0
votes
2 answers

Integrating ZXing in my application

I need to build an app which will recognize QR codes without forcing the user to install other apps. In future, I will also need to manipulate the scanned image before recognizing the code (codes scanned by me will have inverted colors). Trying to…
Val
  • 1,548
  • 1
  • 20
  • 36
0
votes
0 answers

Android : Import strings from Excel to res/strings folder

I need to import a huge dump of strings (around 4k) into res/strings folder, is there any simpler way to do this. Thanks!
prago
  • 5,225
  • 5
  • 25
  • 27
0
votes
1 answer

Android Studio can't resolve resource drawable

I'm designing my layout, and I've exported many assets from Sketch. Everything's going fine, but on just one particular asset, I'm getting the following error: The resource is there, included in the project, I can open it (a regular PNG) perfectly…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
2 answers

Gradle Build Failed - Gradle version 1.10 is required. Current version is 2.8

[![enter image description here][1]][1] I have modified the file .but still not working. Can you please tell exactly where I am going wrong. previously,It was showing error- Required gradle 1.10 , but currently using 2.8
0
votes
2 answers

Show inherit methods in Android Studio

How can i see an inherited methods at Android Studio? Maybe, Android Studio has some shortcats for this? I want to see all inherited methods of class and override it, if necessary.
Admiral Land
  • 2,304
  • 7
  • 43
  • 81