Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Hello World app requires android.useAndroidX=true #11835

Closed
haluzpav opened this issue Jan 16, 2025 · 1 comment
Closed

Android Hello World app requires android.useAndroidX=true #11835

haluzpav opened this issue Jan 16, 2025 · 1 comment

Comments

@haluzpav
Copy link

What version of gRPC-Java are you using?

1.69.0

What is your environment?

MacOS Sequoia 15.0.1
javac 23.0.1
Android Studio Ladybug Feature Drop | 2024.2.2

What did you expect to see?

Working hello world project on Android

What did you see instead?

Building client app fails with

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:extractIncludeDebugProto'.
> Configuration `:app: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:
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.annotation:annotation:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.core:core:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.collection:collection:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.core:core:1.0.0 -> androidx.lifecycle:lifecycle-runtime:2.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.core:core:1.0.0 -> androidx.lifecycle:lifecycle-runtime:2.0.0 -> androidx.lifecycle:lifecycle-common:2.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.core:core:1.0.0 -> androidx.lifecycle:lifecycle-runtime:2.0.0 -> androidx.arch.core:core-common:2.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.core:core:1.0.0 -> androidx.versionedparcelable:versionedparcelable:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.cursoradapter:cursoradapter:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0 -> androidx.documentfile:documentfile:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.loader:loader:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.loader:loader:1.0.0 -> androidx.lifecycle:lifecycle-livedata:2.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.loader:loader:1.0.0 -> androidx.lifecycle:lifecycle-livedata:2.0.0 -> androidx.arch.core:core-runtime:2.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.loader:loader:1.0.0 -> androidx.lifecycle:lifecycle-livedata:2.0.0 -> androidx.lifecycle:lifecycle-livedata-core:2.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.lifecycle:lifecycle-viewmodel:2.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0 -> androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.legacy:legacy-support-core-utils:1.0.0 -> androidx.print:print:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.customview:customview:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.viewpager:viewpager:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.coordinatorlayout:coordinatorlayout:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.drawerlayout:drawerlayout:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.slidingpanelayout:slidingpanelayout:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.interpolator:interpolator:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.fragment:fragment:1.0.0 -> androidx.legacy:legacy-support-core-ui:1.0.0 -> androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.vectordrawable:vectordrawable:1.0.0
  :app:debugRuntimeClasspath -> androidx.appcompat:appcompat:1.0.0 -> androidx.vectordrawable:vectordrawable-animated:1.0.0

Steps to reproduce the bug

https://grpc.io/docs/platforms/android/java/quickstart/#run-the-example

@shivaspeaks
Copy link
Member

I'm marking this as duplicate to the newer issue and we shall follow there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants