0

I am using FirebaseUI to try out the RecyclerViewAdapter. When I try to run the app the gradle build doesn't succeed and gives these errors: Errors shown by Gradle

This doesn't happen when I take out the FirebaseUI Dependency.

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.firebaseui:firebase-ui-database:4.1.0'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'}

Edit: I added MultiDex Support as mentioned on Android Developers Site

What should I do to make the build successful and run the app.

Thanks in advance.

Sanchit Kalra
  • 17
  • 1
  • 5
  • Please add the code that you enable multidex in your app. If there is problem someone can ensure you – Shaon Aug 19 '18 at 11:57
  • @Shaon I added the 'multiDexEnabled true' inside of the defaultConfig in build.gradle and added the 'implementation 'com.android.support:multidex:1.0.3'' dependency and added 'android:name="android.support.multidex.MultiDexApplication"' in the application tag in AndroidManifest.xml – Sanchit Kalra Aug 19 '18 at 13:59
  • Create a class and extends Application or MultidexApllication. Then override on attachContext function. In your manifest add this class in your application tag like this... app:name = "className" plz add manifest code in your questio. Plz edit it – Shaon Aug 21 '18 at 15:37

0 Answers0