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

I'm using Ubuntu 17.04 and when i try to install android studio and run my virtual device it give these errors

Can anyone help for this? can't I run this android virtual device on Ubuntu? 2:24 PM Executing tasks: [:app:assembleDebug] 2:24 PM Emulator: libGL error: unable to load driver: i965_dri.so 2:24 PM Emulator: libGL error: driver pointer…
Chathuranga
  • 316
  • 4
  • 12
14
votes
2 answers

Android Studio 3.0 annotationProcessor

I get the following error after I try to build my project: Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead. I tried to add annotationProcessor '.....' after every…
Marian Pavel
  • 2,726
  • 8
  • 29
  • 65
13
votes
1 answer

Android SDK (Nexus 5X API28 x86) stopping at preparing for setup

I've recently picked up the Android SDK and I'm attempting to configure an SDK to test programs and maybe do some basic Java app programming on. My problem is that it apparently won't finish its setup. Apart from the freeze, that the start button is…
SageOfTheFourWinds
  • 133
  • 1
  • 1
  • 6
13
votes
1 answer

Edit data with new Device File Explorer in Android Studio 3.1

With a new Device File Explorer in Android Studio 3.1 I can open file from the device and see it's contents in Android Studio File opens in edit mode and when I add some lines, save it and restart Android Studio and open this file again it's still…
Vitalii
  • 10,091
  • 18
  • 83
  • 151
13
votes
3 answers

Can't run app with Instant Run on Android Studio 3.0

I've updated to Android Studio 3.0 and now I cannot run the app with Instant Run enabled. I get 'Execution failed for task' due to a java.io.FileNotFoundException because it can't find the apk under…
Hadas Kaminsky
  • 1,285
  • 1
  • 16
  • 39
13
votes
1 answer

Android Studio 3.0 gradle 3.0.0-beta2, breaks Kotlin Unit Test Coverage?

I have a simple Kotlin classes, as below class MyClass { fun justSayHello(yes: Boolean): String { if (yes) { return "Hello" } else { return "Sorry" } } } I have my test (written in Java here,…
Elye
  • 53,639
  • 54
  • 212
  • 474
13
votes
2 answers

Is it possible to discover and run third-party Android Instant Apps on an emulated device?

I'm currently trying to learn about Android instant apps. Since I don't own any real devices that support them, I'm using the emulator (from Android Studio 3.0 Canary 9). I can successfully run "toy" instant apps (like this) on my emulated Nexus 5x…
13
votes
1 answer

Failed resolution of: Lcom/google/devtools/build/android/desugar/runtime/ThrowableExtension;

I'm using RxJava with Retrofit on the newest preview of AndroidStudio. My project has java 1.8 suport enabled like this: compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } But when the code is compiled and run I'm getting…
user_4685247
  • 2,878
  • 2
  • 17
  • 43
12
votes
6 answers

image Asset Studio not available in flutter projects

I want to create a new icon using the assets tool as described here. Surprisingly, the option to create an image set is missing in the context menu:
Davies
  • 135
  • 1
  • 1
  • 7
12
votes
1 answer

How to create an Auto Clicker app which can click on other apps?

I have seen so many apps that provide auto tapping feature. But they don't provide some specific customization so I decided to create a one. I have seen many tutorials that offers auto tapping, but they are supposed to be used in the same app. But I…
MichaelJohn
  • 195
  • 1
  • 2
  • 12
12
votes
7 answers

How to take screen shots of mobile debug device running Flutter application in Android Studio?

Using Android Studio for developing flutter replaces the LogCat console with the run tab. This works great, but how do I take a screen shot of my debugging device? Previously I used to expand the LogCat side menu and click on the capture image …
12
votes
8 answers

Android Studio Can't Zoom in/out in Layout Editor

It used to work from time to time, but now the ability to zoom in/out on the layout design page is completely gone for me. The layout view always stays at 10% zoomed in and doesn't change no matter what I do. Oddly, the preview tab with exactly the…
Jack
  • 5,354
  • 2
  • 29
  • 54
12
votes
1 answer

Developing AOSP with Android Studio 3.1 Cannot build test apk for instrumented tests

I am trying to build a customized AOSP (on Android M, api 23) using Android Studio because I want to run instrumented tests on custom apps running on the hardware. This is on ubuntu 64. It is very frustrating for me as there is no clear cut path.…
likejudo
  • 3,396
  • 6
  • 52
  • 107
12
votes
5 answers

Android Studio is not detecting code changes on build/run(

Whenever I make a code change in the Android Studio (version 3.0.1) I need to clean before I build in order for that change to take effect. Making a change and hitting the green arrow build/run button looks like it builds but the new changes are not…
Clark Battle
  • 630
  • 1
  • 8
  • 16
12
votes
3 answers

Compilation with Kotlin compile daemon was not successful

I had this error in my project. However couldn't find anywhere how to resolve it. Anyone has this problem? It causes the build being run all over again every time. Compilation with Kotlin compile daemon was not…