Skip to content

compileSdkVersion 太高问题 #3514

@github2136

Description

@github2136

问题描述:

之前一直使用v8.1.5-jitpack,今天使用时突然提示
Could not determine the dependencies of task ':app:compileProtectDevDebugKotlin'.

Could not resolve all files for configuration ':app:protectDevDebugRuntimeClasspath'.
Could not find gsyVideoPlayer-ex_so-v8.1.5-jitpack.aar (com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v8.1.5-jitpack).
Searched in the following locations:
https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-ex_so/v8.1.5-jitpack/gsyVideoPlayer-ex_so-v8.1.5-jitpack.aar
Could not find gsyVideoPlayer-exo_player2-v8.1.5-jitpack.aar (com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-exo_player2:v8.1.5-jitpack).
Searched in the following locations:
https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/gsyVideoPlayer-exo_player2/v8.1.5-jitpack/gsyVideoPlayer-exo_player2-v8.1.5-jitpack.aar
查看jitpack网站https://jitpack.io/com/github/CarGuo/GSYVideoPlayer/v8.1.5-jitpack/ 只剩一个build.log 编译失败的log

更新为com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v8.1.9-release-jitpack后
又提示
Execution failed for task ':app:checkProtectDevDebugAarMetadata'.

Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
The minCompileSdk (31) specified in a; dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties); is greater than this module's compileSdkVersion (android-28).Dependency: androidx.appcompat:appcompat:1.4.0.

能否在不升级compileSdkVersion、targetSdkVersion的情况下使用8.1.9版或者重新编译8.1.5版

GSY依赖版本

例如 implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v8.1.5-jitpack'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions