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

Android Studio 3, building release --min-sdk-version

I updated to Android Studio 3. I can build the "debug" apk but now I cannot build the "release" apk. I get this error: :app:transformClassesWithPreDexForRelease FAILED AGPBI: {"kind":"error","text":"unknown option:…
Ton
  • 9,235
  • 15
  • 59
  • 103
0
votes
1 answer

Android Studio 3.0.1 - Emulator black screen

I'm using Android studio v3.0.1 and trying to use the emulator. I have created several different virtual devices but all of them fail to boot. The IDE says 'waiting for target device to come online'. I have reinstalled Android studio, the emulator,…
Sam D
  • 1
  • 1
  • 3
0
votes
1 answer

I want save images in gallery click on button

I have already tried some code from stack overflow. link mention below How to save image in android gallery But that answer is not working on my project. Please help me to find out a solution. I designed two buttons in the application one for…
0
votes
1 answer

Android Studio 3.0.1 Cannot copy and paste project files

On Android Studio, I took the full copy of the project folder of an open source code as backup and pasted it on my desktop. After a while, when the project got really messed up, I closed Android Studio and copy-pasted the backup folder inside the…
Xfce4
  • 557
  • 5
  • 28
0
votes
2 answers

Detect Collision between two objects and make points increase on collision

In my game I got the ball to fall straight down but I want to implement a collision method that detects when the ball touches the net, then deletes the ball and adds one point to my score. I dont know where to start and how to do this so any help is…
0
votes
1 answer

EditText Java Code in Android Studio

I'm building a quiz app in Android Studio. One of my questions has an EditText to write in the answer. I am stuck on how to determine the score for this answer. Is it a boolean or a string? Here is what I have: EditText q4 =…
Ms_Lese
  • 13
  • 5
0
votes
1 answer

Android Studio BLE - fill text field with cached value of characteristic

New to Android Studio - this may be simple but I've searched high and low and can't seem to get this to work. I have an android app that I inherited. It works but it is counting on the BLE device to send an update every 10 seconds to populate the…
BH1973
  • 1
0
votes
1 answer

Text out of text view

I am currently having a problem with Android application. I am using a table layout with some views in it. The problem is that it seems like the TextView does not wraps the text correctly. However, when I change swipe between fragments it just…
0
votes
0 answers

Android things error: unable to merge dex

i am doing project on motion sensor camera using android things and firebase and notification through mobile Error:Execution failed for task ':mobile:transformDexArchiveWithExternalLibsDexMergerForDebug'. …
Bjs
  • 15
  • 4
0
votes
1 answer

Android Studio 3: no AVD manager and no Tools->Android menu after install on new machine

Downloaded and installed Android Studio 3 today on a Mac. Created a new blank Android app. After creating and fixing this in build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion…
jcollum
  • 43,623
  • 55
  • 191
  • 321
0
votes
1 answer

Restrict dragging of marker to a particular country

Can I restrict the dragging of marker in maps to a particular country? I don't want user to drag the marker outside India because of some features of my application.
0
votes
0 answers

Android studio 3.0 error....unable to merge multiple dex files

i have found that in packages under libraries/android/arch/lifecycle there are some files which have been created twice. Due to which I'm getting an error that unable to merge multiple dex files....And I'm not able to delete then...these are read…
0
votes
0 answers

My app returns a crash related-to androidView

I'm doing a splash screen for my application. The splash consists in two images: one as background, the other as text over the background. The problem is that when I run the app, it returns this error: 03-04 00:31:57.921…
user9439929
0
votes
2 answers

How to get the path for created pdf report and share it?

I use this document to create a Pdf file. By hitting a button to create a pdf file, Pdf-Viewer opens the created pdf automatically. I would like to know where that temporary file is saved in the device to get its path and share with socials using…
Davoud
  • 2,576
  • 1
  • 32
  • 53
0
votes
2 answers

"No resource found" errors Android gradle build for files in .gradle/caches

My Gradle build on Android Studio fails with multiple errors such as. C:\Users\%USER_HOME%\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\67e074a850e794c5187b156467264a93\res\layout\abc_alert_dialog_material.xml Error:(26, 22) No…