Jadi ceritanya saya ingin memasang iklan di aplikasi yang saya buat dari google admod, nah sudah saya ikuti instruksi sesuai arahan google dan berhasil tidak ada error, eh tapi pas Rebuild Project saya mendapati error 'This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled.'.
Berikut error lengkapnya :
This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.
The following AndroidX dependencies are detected: androidx.slidingpanelayout:slidingpanelayout:1.0.0, androidx.fragment:fragment:1.0.0, androidx.versionedparcelable:versionedparcelable:1.1.0, androidx.core:core:1.2.0, androidx.customview:customview:1.0.0, androidx.swiperefreshlayout:swiperefreshlayout:1.0.0, androidx.interpolator:interpolator:1.0.0, androidx.sqlite:sqlite:2.0.1, androidx.loader:loader:1.0.0, androidx.drawerlayout:drawerlayout:1.0.0, androidx.sqlite:sqlite-framework:2.0.1, androidx.viewpager:viewpager:1.0.0, androidx.collection:collection:1.0.0, androidx.localbroadcastmanager:localbroadcastmanager:1.0.0, androidx.lifecycle:lifecycle-common:2.0.0, androidx.arch.core:core-common:2.0.1, androidx.lifecycle:lifecycle-service:2.0.0, androidx.annotation:annotation:1.1.0, androidx.room:room-common:2.1.0, androidx.legacy:legacy-support-core-ui:1.0.0, androidx.lifecycle:lifecycle-livedata:2.0.0, androidx.lifecycle:lifecycle-viewmodel:2.0.0, androidx.work:work-runtime:2.1.0, androidx.browser:browser:1.0.0, androidx.lifecycle:lifecycle-livedata-core:2.0.0, androidx.arch.core:core-runtime:2.0.1, androidx.legacy:legacy-support-core-utils:1.0.0, androidx.documentfile:documentfile:1.0.0, androidx.cursoradapter:cursoradapter:1.0.0, androidx.lifecycle:lifecycle-runtime:2.0.0, androidx.coordinatorlayout:coordinatorlayout:1.0.0, androidx.asynclayoutinflater:asynclayoutinflater:1.0.0, androidx.room:room-runtime:2.1.0, androidx.print:print:1.0.0
Saya cari cari dapatlah di forum Stackoverflow : https://stackoverflow.com klik saja link tersebut untuk lebih detainya
Saya ikuti sesuai petujuk disana , nah saya menambahkan kode sebagai berikut di gradle.properties :
android.useAndroidX=true
android.enableJetifier=true
Dan alhamdulillah ...
0 komentar: