Skip to content

[cronet_http] Fails building app. :jni requires compileSdk 35. #1860

@asaarnak

Description

@asaarnak

Related to issue #1821

Getting this exception when building app in release mode:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cronet_http:checkReleaseAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > An issue was found when checking AAR metadata:

       1.  Dependency ':jni' requires libraries and applications that
           depend on it to compile against version 35 or later of the
           Android APIs.

           :cronet_http is currently compiled against android-34.

           Recommended action: Update this project to use a newer compileSdk
           of at least 35, for example 36.

           Note that updating a library or application's compileSdk (which
           allows newer APIs to be used) can be done separately from updating
           targetSdk (which opts the app in to new runtime behavior) and
           minSdk (which determines which devices the app can be installed
           on).

Metadata

Metadata

Assignees

Labels

package:cronet_httptype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions