contains AndroidX dependencies, but the `android.useAndroidX` property is not enabled, which may cause runtime issues.

Open Beginner friendly
#236 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
62/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
android, kotlin

Research direction

Open the gradle.properties file and check the Android build configuration for the android.useAndroidX property. Set it to true as requested, retry the debug build, and confirm that the debugRuntimeClasspath warning is no longer reported.

Written by the indexing model from the issue text.

Description

Configuration debugRuntimeClasspath contains AndroidX dependencies, but the android.useAndroidX property is not enabled, which may cause runtime issues.
Set android.useAndroidX=true in the gradle.properties file and retry.
The following AndroidX dependencies are detected:
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-runtime-ktx:2.4.0 -> androidx.annotation:annotation:1.3.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.core:core:1.7.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.annotation:annotation-experimental:1.1.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-runtime-ktx:2.4.0 -> androidx.lifecycle:lifecycle-runtime:2.4.0
debugRuntimeClasspath -> androidx.room:room-runtime:2.3.0 -> androidx.arch.core:core-runtime:2.1.0
debugRuntimeClasspath -> androidx.paging:paging-runtime-ktx:3.1.0 -> androidx.paging:paging-runtime:3.1.0 -> androidx.paging:paging-common:3.1.0 -> androidx.arch.core:core-common:2.1.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.savedstate:savedstate:1.1.0 -> androidx.lifecycle:lifecycle-common:2.4.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.core:core:1.7.0 -> androidx.versionedparcelable:versionedparcelable:1.1.1
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.collection:collection:1.1.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.core:core:1.7.0 -> androidx.concurrent:concurrent-futures:1.0.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.cursoradapter:cursoradapter:1.0.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.activity:activity:1.2.4
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0 -> androidx.lifecycle:lifecycle-viewmodel:2.4.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.savedstate:savedstate:1.1.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-viewmodel-savedstate:2.4.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.fragment:fragment:1.3.6 -> androidx.lifecycle:lifecycle-livedata-core:2.4.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.activity:activity:1.2.4 -> androidx.tracing:tracing:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.fragment:fragment:1.3.6
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.fragment:fragment:1.3.6 -> androidx.viewpager:viewpager:1.0.0
debugRuntimeClasspath -> androidx.recyclerview:recyclerview:1.2.1 -> androidx.customview:customview:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.fragment:fragment:1.3.6 -> androidx.loader:loader:1.0.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-livedata-ktx:2.4.0 -> androidx.lifecycle:lifecycle-livedata:2.4.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.appcompat:appcompat-resources:1.4.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.vectordrawable:vectordrawable:1.1.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.appcompat:appcompat-resources:1.4.0 -> androidx.vectordrawable:vectordrawable-animated:1.1.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.appcompat:appcompat-resources:1.4.0 -> androidx.vectordrawable:vectordrawable-animated:1.1.0 -> androidx.interpolator:interpolator:1.0.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.drawerlayout:drawerlayout:1.0.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.emoji2:emoji2:1.0.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.emoji2:emoji2:1.0.0 -> androidx.lifecycle:lifecycle-process:2.4.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.emoji2:emoji2:1.0.0 -> androidx.startup:startup-runtime:1.0.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.emoji2:emoji2-views-helper:1.0.0
debugRuntimeClasspath -> androidx.appcompat:appcompat:1.4.0 -> androidx.resourceinspection:resourceinspection-annotation:1.0.0
debugRuntimeClasspath -> androidx.recyclerview:recyclerview:1.2.1
debugRuntimeClasspath -> androidx.constraintlayout:constraintlayout:2.1.2
debugRuntimeClasspath -> androidx.constraintlayout:constraintlayout:2.1.2 -> androidx.constraintlayout:constraintlayout-core:1.0.2
debugRuntimeClasspath -> com.google.android.material:material:1.4.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.cardview:cardview:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.coordinatorlayout:coordinatorlayout:1.1.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.dynamicanimation:dynamicanimation:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.dynamicanimation:dynamicanimation:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.dynamicanimation:dynamicanimation:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0 -> androidx.documentfile:documentfile:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.dynamicanimation:dynamicanimation:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0 -> androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.dynamicanimation:dynamicanimation:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0 -> androidx.print:print:1.0.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.transition:transition:1.2.0
debugRuntimeClasspath -> com.google.android.material:material:1.4.0 -> androidx.viewpager2:viewpager2:1.0.0
debugRuntimeClasspath -> androidx.core:core-ktx:1.7.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-runtime-ktx:2.4.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-livedata-ktx:2.4.0
debugRuntimeClasspath -> androidx.lifecycle:lifecycle-livedata-ktx:2.4.0 -> androidx.lifecycle:lifecycle-livedata-core-ktx:2.4.0
debugRuntimeClasspath -> androidx.room:room-runtime:2.3.0
debugRuntimeClasspath -> androidx.room:room-ktx:2.3.0 -> androidx.room:room-common:2.3.0
debugRuntimeClasspath -> androidx.room:room-runtime:2.3.0 -> androidx.sqlite:sqlite-framework:2.1.0
debugRuntimeClasspath -> androidx.room:room-runtime:2.3.0 -> androidx.sqlite:sqlite:2.1.0
debugRuntimeClasspath -> androidx.room:room-ktx:2.3.0
debugRuntimeClasspath -> androidx.paging:paging-runtime-ktx:3.1.0
debugRuntimeClasspath -> androidx.paging:paging-runtime-ktx:3.1.0 -> androidx.paging:paging-runtime:3.1.0
debugRuntimeClasspath -> androidx.paging:paging-runtime-ktx:3.1.0 -> androidx.paging:paging-runtime:3.1.0 -> androidx.paging:paging-common:3.1.0
debugRuntimeClasspath -> androidx.paging:paging-runtime-ktx:3.1.0 -> androidx.paging:paging-common-ktx:3.1.0

Dominant language
Kotlin
Stars
509
Forks
268
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/codelab-android-paging

All issues in android/codelab-android-paging

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.