Can’t build project with Android Studio 3.0 + DataBinding + Kotlin

I just tried with similar build.gradle settings in a new and fresh kotlin project and it builds. Unfortunately I couldn’t use all your libs and your exact setting but maybe it’s just a matter of order. Here is my build.gradle apply plugin: ‘com.android.application’ apply plugin: ‘kotlin-android’ apply plugin: ‘kotlin-kapt’ apply plugin: ‘kotlin-android-extensions’ kapt { generateStubs … Read more

com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex – Android Studio 3.0 stable

Go to <project>/app/ and open build.gradle file Add the following line to the defaultConfig and dependencies sections android { … defaultConfig { … multiDexEnabled true // ADD THIS LINE } } … dependencies { … implementation ‘com.android.support:multidex:1.0.3’ // ADD THIS LINE }

Does Android Studio 3 support Java 9 for Android development? If so, what features of Java 9 are supported?

As far as I know, the IDE itself supports Java 9. This means you can write a Java 9 desktop program, or run the IDE with JDK 9. However, Android itself does not support Java 9 (yet). You can still download JDK 9, although I have seen some questions on problems related to Android Studio … Read more

Gradle dependency configuration : implementation vs api vs runtimeonly vs compileonly

Please refer the link : Android Studio 3.0 New Gradle Configuration available at android developers official site. Based on description mentioned in above link: implementation: When your module configures an implementation dependency, it’s letting Gradle know that the module does not want to leak the dependency to other modules at compile time. That is, the … Read more

Unable to resolve dependency Android Studio 3.0

After some research I have solved this issue. Step 1-: I disable the Gradle offline work in settings. File > Settings > Build, Execution, Deployment > Gradle > Uncheck Offline Work Step 2-: Then, I just changed compile ‘com.facebook.android:account-kit-sdk:4.+’ to api ‘com.facebook.android:account-kit-sdk:4.+’ I don’t know exactly why it’s work. I see api in docs Reference … 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