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

Could not resolve com.android.support:appcompat-v7:26.1.0 in Android Studio new project

Finally I fixed the problem by modifying build.gradle like this: android { compileSdkVersion 26 buildToolsVersion “26.0.2” defaultConfig { minSdkVersion 16 targetSdkVersion 26 } } dependencies { implementation fileTree(dir: ‘libs’, include: [‘*.jar’]) implementation ‘com.android.support:appcompat-v7:26.1.0’ implementation ‘com.android.support.constraint:constraint-layout:1.0.2’ implementation ‘com.android.support:design:26.1.0′ } I’ve removed these lines as these will produce more errors: testImplementation ‘junit:junit:4.12’ androidTestImplementation ‘com.android.support.test:runner:1.0.1’ androidTestImplementation ‘com.android.support.test.espresso:espresso-core:3.0.1’ Also … Read more

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