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
533
votes
66 answers

Android emulator not able to access the internet

I know that similar questions have been asked before, but my problem is new only after installing Android Studio 2.3, the latest version in March 2017. I have several years experience developing Android applications, and I have never encountered…
John Moore
  • 7,282
  • 3
  • 14
  • 14
324
votes
63 answers

Unable to merge dex

I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message: Error:Execution failed for task…
Parad0X
  • 3,634
  • 2
  • 12
  • 23
270
votes
26 answers

How to fix 'Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant:'

I am trying to run a selected build variant but giving me following error in Run tab, Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: madhyapradesh-debug So kindly…
RAHUL UMAK
  • 2,721
  • 2
  • 12
  • 7
256
votes
9 answers

Unsupported method: BaseConfig.getApplicationIdSuffix()

So I'm reading Android 6 for Programmers: An App-Driven Approach and the first two app examples I had no issues with the examples, this time the FlagQuiz example when loaded in Android Studio 3.0 Canary-3 I'm getting this error which isn't letting…
exts
  • 9,788
  • 4
  • 19
  • 21
225
votes
24 answers

Android Room - simple select query - Cannot access database on the main thread

I am trying a sample with Room Persistence Library. I created an Entity: @Entity public class Agent { @PrimaryKey public String guid; public String name; public String email; public String password; public String phone; …
Devarshi
  • 16,440
  • 13
  • 72
  • 125
175
votes
32 answers

Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath': Could not resolve project :animators

I migrate to Android studio 3.0. So, the project become unable to compile a module named ":animator" and it displays me this error: Error:Unable to resolve dependency for ':app@dexOptions/compileClasspath': Could not resolve project :animators.…
160
votes
10 answers

RegisterResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)

Using new android studio with new 3.0.0 Gradle pluging. When building some warning happened: registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Valentin Baryshev
  • 2,195
  • 3
  • 15
  • 24
156
votes
9 answers

References to other resources are not supported by build-time PNG generation

AndroidStudio 3.0 / Android Gradle plugin 3.0 I get this error: references to other resources are not supported by build-time PNG generation Will it be possible to…
langme
  • 1,672
  • 2
  • 9
  • 18
147
votes
16 answers

Failed to resolve variable '${animal.sniffer.version}' when migrate to AndroidX

I'm using Android Studio 3.2 Beta5 to migrate my project to AndroidX. When I rebuild my app I got these errors: ERROR: [TAG] Failed to resolve variable '${animal.sniffer.version}' ERROR: [TAG] Failed to resolve variable '${junit.version}' Full…
122
votes
16 answers

Cannot resolve symbol '?attr/actionBarSize' after updating Android Studio from 2.3 to 3.0 for buildToolsVersion '26.0.2'

After updating Android Studio from 2.3 to 3.0 I changed buildToolsVersion from 26.0.0 to 26.0.2 and after that I am getting this error: Cannot resolve symbol '?attr/actionBarSize Xml code:
111
votes
10 answers

Gradle version 3.3 does not support forTask() method on BuildActionExecuter

I just updated my Android Studio to 3.0 canary 1. Now I am working on my existing project on Android Studio 3.0 canary 1. By default gradle:3.0.0-alpha1 is set in my project: gradle_file. So I changed my gradle version to 2.2.3 and now I'm getting…
Ajay Jayendran
  • 1,584
  • 4
  • 15
  • 37
108
votes
4 answers

How to use Data Binding and Kotlin in Android Studio 3.0.0

I just started to use Android Studio 3.0.0, but every time I try to build my project I get this error: Error:Circular dependency between the following tasks: :app:compileDebugKotlin +--- :app:dataBindingExportBuildInfoDebug | \---…
100
votes
15 answers

Could not find com.android.tools.lint:lint-gradle Android Studio 3

I have updated Android Studio to 3.0 and now received a lot of issues.. now stoped on point with such issue: Could not resolve all files for configuration ':applib:_lintClassPath'. > Could not find com.android.tools.lint:lint-gradle:26.1.0-alpha01. …
D.K.
  • 1,315
  • 2
  • 11
  • 20
88
votes
24 answers

Android Studio 3.0 Execution failed for task: unable to merge dex

android studio was getting build error while build execution with following: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException:…
Anguraj
  • 935
  • 1
  • 8
  • 9
84
votes
23 answers

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve

Newly installed Android studio 3.1.3 is giving strange dependencies error when making a new project and compiling for very first time. A similar question that didn't help resolve the problem. Event Logs: Unable to resolve dependency for…
1
2 3
99 100