Skip to content

android-interop-testing: Remove usage of MultiDexApplication#12685

Merged
ejona86 merged 3 commits intogrpc:masterfrom
ejona86:android-rm-explicit-multidex
Mar 10, 2026
Merged

android-interop-testing: Remove usage of MultiDexApplication#12685
ejona86 merged 3 commits intogrpc:masterfrom
ejona86:android-rm-explicit-multidex

Conversation

@ejona86
Copy link
Copy Markdown
Member

@ejona86 ejona86 commented Mar 10, 2026

Since we're only supporting API levels 23+, all the supported Android versions handle multidex natively, and without any bugs to workaround.

See also b/476359563


cl/872773139. CC @kannanjgithub

Since we're only supporting API levels 23+, all the supported Android
versions handle multidex natively, and without any bugs to workaround.

See also b/476359563
Copy link
Copy Markdown
Member

@shivaspeaks shivaspeaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also consider cleaning multiDexEnabled = true and the dependency implementation 'androidx.multidex:multidex:2.0.0' from android-interop-testing/build.gradle?


<application
android:name="android.support.multidex.MultiDexApplication" >
<application>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can delete this empty <application> </application> tags?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you take care of this as well @ejona86?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't matter either way, and I'd rather it be identical to the internal CL (so that the internal one doesn't need modifying).

Copy link
Copy Markdown
Member

@shivaspeaks shivaspeaks Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I was concerned because this will not be caught in the follow-up cleanup and this remains empty tag lying there as a dead code forever.. but nevermind. I approved.

@ejona86
Copy link
Copy Markdown
Member Author

ejona86 commented Mar 10, 2026

Yeah, I was thinking of removing those other things as well, but was mostly just externalizing the one change here.

Copy link
Copy Markdown
Contributor

@zhangkun83 zhangkun83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Also bump some minSdkVersion that didn't get updated in fa7b52b
@ejona86
Copy link
Copy Markdown
Member Author

ejona86 commented Mar 10, 2026

I went ahead and removed the other references to multidex in the build.gradle files, since we do build-specific stuff in the internal CL as well. But I do realize there's still more cleanups available (e.g., gradle/libs.versions.toml now that minSdkVersion is bumped). That stuff will need to be follow-up.

Copy link
Copy Markdown
Member

@shivaspeaks shivaspeaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I do realize there's still more cleanups available (e.g., gradle/libs.versions.toml now that minSdkVersion is bumped). That stuff will need to be follow-up.

We should create a tracking issue for this then.


<application
android:name="android.support.multidex.MultiDexApplication" >
<application>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you take care of this as well @ejona86?

sure it is built before being used

```
Execution failed for task ':grpc-android-interop-testing:mergeExtDexDebug'.
> Could not resolve all files for configuration ':grpc-android-interop-testing:debugRuntimeClasspath'.
   > Failed to transform opencensus-contrib-grpc-metrics-0.31.1.jar (io.opencensus:opencensus-contrib-grpc-metrics:0.31.1) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=23, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not resolve all files for configuration ':grpc-android-interop-testing:debugRuntimeClasspath'.
         > Failed to transform grpc-api-1.81.0-SNAPSHOT.jar (project :grpc-api) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
            > Execution failed for IdentityTransform: /grpc-java/api/build/libs/grpc-api-1.81.0-SNAPSHOT.jar.
               > File/directory does not exist: /grpc-java/api/build/libs/grpc-api-1.81.0-SNAPSHOT.jar
```
@ejona86 ejona86 merged commit 4de4718 into grpc:master Mar 10, 2026
15 checks passed
@ejona86 ejona86 deleted the android-rm-explicit-multidex branch March 10, 2026 22:33
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

Successfully merging this pull request may close these issues.

3 participants