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

First clean your project by Build -> Clean project Then rebuild project Build -> Rebuild project Then run your project. I hope this will work. if not then go to File -> Invalidate Caches / Restart -> Invalidate and restart The last option is you can sync Gradle again in case nothing worked

How to use Data Binding and Kotlin in Android Studio 3.0.0

UPD: This was fixed for Android Gradle plugin 3.0.0-alpha3, in yout project root build.gradle, change the buildscript dependencies to use classpath ‘com.android.tools.build:gradle:3.0.0-alpha3’ This is actually a bug in the Kotlin Gradle plugin 1.1.2-4 inter-operation with the Android Gradle plugin 3.0.0-alpha1, caused by how the inputs and outputs of the tasks are set (and thus how … Read more

java.lang.IllegalArgumentException: Invalid Region.Op – only INTERSECT and DIFFERENCE in Button background failure

UPDATE The fix for this will be included in Android Studio 3.5 Canary 2 java.lang.IllegalArgumentException: Invalid Region.Op – only INTERSECT and DIFFERENCE The issue with targetSdkVersion 28 Looks like this started being enforced in P: https://developer.android.com/reference/android/graphics/Canvas#clipRect(android.graphics.RectF,%20android.graphics.Region.Op) also reported here https://issuetracker.google.com/issues/121235731 https://github.com/facebook/stetho/issues/607 https://github.com/ArthurHub/Android-Image-Cropper/issues/553 https://github.com/ArthurHub/Android-Image-Cropper/pull/588 Temporary solution for your case Use <corners android:radius=”8dp”/> instead of <corners android:bottomRightRadius=”8dp” … Read more

Unable to Merge Dex – Android Studio 3.0

Add an explicit dependency to play-services-auth along with your firebase-ui-auth dependency: // FirebaseUI for Firebase Auth compile ‘com.firebaseui:firebase-ui-auth:3.1.0’ compile ‘com.google.android.gms:play-services-auth:11.4.2’ This is because firebase-ui-auth has a transitive dependency to play-services-auth and must be used with the corresponding version of play-services-auth. Please see this explanation. firebase-ui-auth |— com.google.firebase:firebase-auth |— com.google.android.gms:play-services-auth Earlier versions of the Gradle build … Read more

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

If you’re running lint on a project that you created using an older version of Android Studio, you may encounter this error. To resolve this issue, for each project that you would like to run lint on, include Google’s Maven repository in the top-level build.gradle file, as shown below: allprojects { repositories { // The … Read more

Android emulator not able to access the internet

👉 1st try “Cold booting” the emulator as suggested here. 👉 If cold booting doesn’t work, try changing the DNS address of your network to 8.8.8.8 (Google’s DNS) or another of your preference: MacOSX: Open “System Preferences” Click on “Network” Select the network which your computer is connected and click on “Advanced” Select “DNS”, Select … Read more