Questions tagged [android-studio-3.0]

Use for questions about using Android Studio, an official IDE targeted at Android development. Do NOT use for questions about programming for Android in general; instead use [android].

Android Studio is the official IDE for Android development, and includes everything you need to build Android apps.

For more updates about Android Studio 3.0 check out these videos

  1. AS 3.0
  2. Java 8 support
  3. The new Profiler
1629 questions
0
votes
1 answer

Odd DexArchiveMergerException

I've encountered this issue in the past, and was able to fix it fairly easily. This time, however, I do not see what's causing it. The only change to the build.gradle I have made since it worked was implementation project(':sharedfiles') - a shared…
user5330423
0
votes
5 answers

How to put a delay like 2 seconds after a button is clicked?

My code is using 'case and break' example case R.id.student: showMessage("Student"); Intent std = new Intent(Home.this, student.class); startActivity(std); …
A. Garcia
  • 3
  • 3
0
votes
2 answers

osmdroid in Android Studio 3.0

When I try to run the osmdroid with Android Studio 3.0, there is an error: Error:Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN, fullName=debug, filters=[]}} of type…
Fency
  • 1
  • 3
0
votes
1 answer

Kotlin generic type, Type inference failed

Kotlin reference document said this example is valid. https://kotlinlang.org/docs/reference/generics.html#upper-bounds fun cloneWhenGreater(list: List, threshold: T): List where T : Comparable, T : Cloneable { return…
Stanley Ko
  • 3,383
  • 3
  • 34
  • 60
0
votes
2 answers

Alert Dialog disappers

Alert Dialog disappears when the back button is clicked. Does no give me the opportunity to make a selection. This dialog is suppose to pop up when m == null || m.getPosition() == null. "m" is the variable"Marker m" @Override public void…
pennyBoy
  • 397
  • 2
  • 17
0
votes
0 answers

Execution Failed unable to merge dex

me and my cooworkers are at the 1st experience with android programming and we are facing what we believe its a Bug and we cant solve it Using Android Studio 3.0 when we try to build and run a project after the implementation of the google play…
0
votes
1 answer

Could not get audio input for record source 1

I am trying to get AudioRecord instance but I get errors: Could not get audio input for record source 1 Error creating AudioRecord instance: initialization check failed. Error code -20 when initializing native AudioRecord object. Here is my…
0
votes
0 answers

Android studio not showing preview

I'm trying to set up android studio but it is not showing the device preview. I am unable to add a device to display. Also have many other errors since downloading the new version.
Ash
  • 137
  • 1
  • 10
0
votes
0 answers

Android Studio Dependancies: I want to use and edit a library

I can't seem to find any solid information on this. I have an external library that I want to use (OSMDroid). I have it imported by adding it to my build.grade file. Its all fine and it works well enough. However, I have an issue with certain…
Ingwe
  • 146
  • 13
0
votes
1 answer

Running Android Studio with an HTTP Proxy

I just downloaded and installed the latest version of Android Studio (3.0.1) at work to start a new tablet project. During setup it needed me to enter my proxy server information which I did. I created an empty project and it asked me to accept or…
Stewball
  • 15
  • 8
0
votes
3 answers

unable to resolve all dependencies in android studio after updating to 3.0.1

I'm getting these errors: Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not…
SriDatta Yalla
  • 766
  • 8
  • 13
0
votes
2 answers

The service does not run if the app is killed

So I have a service that checks if the Screen is ON or OFF (from here). This is the main activity: public class MainActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Thomas
  • 121
  • 2
  • 12
0
votes
1 answer

failed to release a signed APK on Android Studio

I am working on a project and when I try to release a signed APK from build.Gradle it gives me this error : Error:(20, 0) C:\Users\sephn\Downloads\Fingerprint2Sleep-master\signing.properties (The system cannot find the file specified) Open…
Grey Ish
  • 13
  • 3
0
votes
1 answer

After migrate to Android Studio 3.0 drawable 'png' NOT compressed in debug build

Drawables compressed in release build types, but NOT compressed in debug build types. Android Studio 3.0 Build #AI-171.4408382, built on October 20, 2017 JRE: 1.8.0_152-release-915-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux…
c0rp
  • 501
  • 1
  • 10
  • 31
0
votes
2 answers

Error in downloading emulator in android studio in ubuntu

I am using android studio 3.0 in ubuntu when i try to download emulator it says "your cpu does not support required features (VT-x or SVM)"