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
9
votes
0 answers

Android Studio 3.2 logcat "SHOW ONLY SELECTED APPLICATION" is not default anymore

I have been working with Android Studio version Android Studio 3.2 Build #AI-181.5540.7.32.5014246, built on September 17, 2018 JRE: 1.8.0_152-release-1136-b06 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 It has an…
Hector
  • 4,016
  • 21
  • 112
  • 211
9
votes
2 answers

Android Studio shortcut for autocomplete Toast(Kotlin)

I have a problem with the newest version of Android Studio(> 3) to use the autocomplete for Toast with Kotlin. In older versions with Java, it was like typing "Toast", then pushing "Tab" button on keyboard to autocomplete this. Now, in the versions…
K.Os
  • 5,123
  • 8
  • 40
  • 95
9
votes
2 answers

error: expected color but got (raw string) color/gray

I have switched to android studio 3. after many problem that I fixed, I got this error: color/colorPrimary but i go this error:Error:(87, 5) error: expected color but got (raw string) color/gray
Nawrez
  • 3,314
  • 8
  • 28
  • 42
9
votes
1 answer

How to solve failed linking file resources on Android Studio 3 error?

I have switched to Android Studio 3. After many problems that I fixed, I got these errors: Why, in my layout do I get this error? When I have commented out "@style/TextAppearance.StatusBar.EventContent", it gets uncommented out again after…
Groot
  • 177
  • 1
  • 2
  • 10
9
votes
5 answers

Execution failed for task mockableAndroidJar, mockable-android- . jar already exists

I am facing issue with Android Studio 3, gradle android plugin 3 with build target 27 and support lib 27.0.0 Error:Execution failed for task ':module:mockableAndroidJar'. > Output file [[...]/build/generated/mockable-android-27.v3.jar] already…
Gaurav Vashisth
  • 7,547
  • 8
  • 35
  • 56
9
votes
2 answers

AndroidStudio 3.0: Java 8 stream not compile (Call requires API level 24)

Java 8, and I install new Android Studio 3.0. Add code: List myList = Arrays.asList("a1", "a2", "b1", "c2", "c1"); myList .stream() .filter(s -> s.startsWith("c")) …
Alexei
  • 14,350
  • 37
  • 121
  • 240
9
votes
2 answers

GPU profiler, Android studio 3.0

Recently was released Android Studio 3.0. There are changes regarding Profiling (CPU, Network, Memory). And with these changes came questions like: Where is GPU profiling? Have Google ditched it? Does it mean that we can only debug it only…
Vlad
  • 497
  • 7
  • 12
9
votes
1 answer

Where is "Activity Manager State" in Android Studio 3?

There was a very handy feature for debugging, that was present in Android studio 2.x, but currently is not there in 3.x. It was a bit hidden in the UI: Then it will prompt with detailed activity manager state: I know, that I can acquire that…
azizbekian
  • 60,783
  • 13
  • 169
  • 249
9
votes
2 answers

Android studio 3 beta 4. Refactoring cannot be performed

I have a problem with the latest beta update trying to refactor the view or xml layout name id in xml. The error dialog says Refactoring cannot be performed File C:\dev\workspace......\R.java is read-only. Things I've tried: Gradle clean,…
Ooba Elda
  • 1,622
  • 1
  • 12
  • 18
9
votes
4 answers

Android Studio 3 + Gradle 4.0 + shrinkResources + libraryProject = Unable to find a matching configuration in project

I've problems to migrate my project to the newest Gradle 4.0 + Android Studio 3 version, which gives me all kind of errors. Little by little I managed to sort them all out except this one. Could not resolve all dependencies for configuration…
JimVanB
  • 1,215
  • 1
  • 13
  • 29
9
votes
1 answer

Error:Error converting bytecode to dex: Cause: not found: Ljava/lang/Object;

i try to android 3.0. i upgrade my android project to android studio 3.0 after that i cant run my project and i have this error. i use MultiDex and use java 8. this is my build.gradle dependencies { compile fileTree(include: ['*.jar'], dir:…
Mahdi Azadbar
  • 1,330
  • 3
  • 17
  • 24
8
votes
1 answer

supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator

Static interface methods are only supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator.lambda$static$0(okhttp3.Route, okhttp3.Response)
M Azam Khan
  • 302
  • 3
  • 15
8
votes
5 answers

Upgrade to AndroidStudio 3.4 and now can´t run my app

I updated my Android Studio to Android Studio 3.4 and I'm trying to run one of my apps but it gives me an error. com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug Session 'app': Install…
anitoledo
  • 101
  • 1
  • 3
8
votes
2 answers

Build folder not generating in android studio project

Migrated to gradle kotlin dsl and ever since running the project from android studio fails to generate a build folder and an apk. Build succeeds but installation fails with the message: The APK file…
Nishita
  • 870
  • 1
  • 9
  • 33
8
votes
0 answers

ERROR: Project#afterEvaluate(Closure) on project ':app' cannot be executed in the current context

Hi can anyone help me to resolve "ERROR: Project#afterEvaluate(Closure) on project ':app' cannot be executed in the current context." in android studio
k.nagababu
  • 191
  • 1
  • 1
  • 5