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
1
vote
0 answers

app:preDexDebug taking a lot of time

I am using Android Studio version 1.5. Building an apk takes a lot of time(almost 10-15 min). I am running studio in Windows 8.0 with 4GB RAM and 500GB Hard Disk Space. Here is the build.gradle of the app: apply plugin:…
div
  • 1,475
  • 3
  • 22
  • 32
1
vote
1 answer

Can't initialize Parse SDK Test

When I try to run the app to test if my SDK is installed I get Error:(35, 22) error: no suitable method found for initialize(,String,String) method Parse.initialize(Context,String,String) is not applicable (actual argument cannot be converted to…
1
vote
0 answers

Android Studio 2.0 Preview 2: Rendering Problems

I tried to change the manifest.xml , style file, the JAVA file by extends Activity, nothing worked for me. I even tried to choose the API 15 in the emulator, but it still doesn't work. The Error: java.lang.IllegalArgumentException: You need to use a…
Aviad
  • 51
  • 5
1
vote
2 answers

Android Studio - Failed to complete Gradle execution - getPid()

I just installed Android Studio, I installed the recommended packages from the SDK Manager, now I am trying to build a sample app. I got this error message: Failed to complete Gradle…
Serban Stoenescu
  • 3,136
  • 3
  • 22
  • 41
0
votes
0 answers

Android studio AVD glitch

I am new to android studio. Literally its my first day on the software. I am having issue with AVD Screen I have used the default pixel 3 avd to run the apk but here is the problem:- SO here is the Output and here is the Input . I am sorry if it has…
0
votes
0 answers

Showing different layout of dialogbox with API level 28

Showing different layout of dialog box with the same code. Works fine with API level from 27 to lower but once run with API 28, it is not display correctly. I figure out is the problem of theme using,I using "theme.dialog" as my theme. Anyone know…
0
votes
1 answer

Android Studio java.lang.NullPointerException: Attempt to invoke virtual method

The Error I get from my app My Error java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.populargeng.trackamechanic.Model.Client.getName()' on a null object reference at…
0
votes
1 answer

How do create a button that when pressed enters a calendar view, allowing the user to select a date?

How do code a button that when pressed enters a calendar view, allowing the user to select a date? (In both the Main Activity and xml)
Jordan.S
  • 23
  • 1
  • 5
0
votes
0 answers

Import native code to android studio 2.3.2

I am using android studio 2.3.2. how can I import prebuild library to this for jni add_library( imported-lib SHARED IMPORTED ) set_target_properties( # Specifies the target library. …
0
votes
3 answers

What is the correct usage of "this" in Android Studio - ActivityCompat.requestPermissions?

In using the method below, Android Studio is generating the following error on the keyword "this": ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},…
leslieG
  • 1
  • 1
0
votes
3 answers

Back button in android webview within a fragment

I have created a webview within a fragment however when I am trying to press the back button, it is killing the app instead of going back. What i want is to go back when i press the back button and if i am already on home page the back button…
0
votes
1 answer

can't send email with java mail in android studio

i create a send email application with android studio, i use javamail to send email, but when i try to build and debug the application there is error like this Error:FAILURE: Build failed with an exception. * What went wrong: Execution failed for…
0
votes
2 answers

which api key to get for autocomplete textview to show places in google maps?

in my app i am using google maps with pickup and drop place search box on top.I am using autocomplete textview based on the following links https://github.com/seatgeek/android-PlacesAutocompleteTextView.now i am going to release my apk. my code is…
shyamyy
  • 29
  • 3
0
votes
1 answer

Android Studio - i-Programmer Tutorial - MainActivity implements View.onClickListener - Cannot resolve symbol error

I'm following this tutorial: http://www.i-programmer.info/programming/android/10051-android-adventures-events.html?start=1 If you scroll down the header: Implement the interface in the activity The picture shows an implement error, though I'm…
Halfacht
  • 924
  • 1
  • 12
  • 22