You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android集成媒体选择器报错:无法解析debugCompileClasspath配置文件

解决Fallery媒体选择器集成时的依赖解析错误
  • 替换占位符版本号
    不要保留{latest_version}占位符,确认Fallery的实际最新版本号后,将依赖替换为具体版本,例如:

    implementation 'com.github.mehdiyari:Fallery:1.2.0'
    
  • 验证JitPack仓库配置
    确保settings.gradle中的JitPack仓库配置格式正确,示例如下:

    dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
            jcenter()
            maven { url 'https://jitpack.io' }
        }
    }
    

    重点检查仓库地址的拼写,避免格式错误。

  • 调整Java编译版本
    尝试将Java编译版本提升至11,在app模块的build.gradle中修改配置:

    android {
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_11
            targetCompatibility JavaVersion.VERSION_11
        }
    }
    
  • 清理缓存并重新同步

    1. 执行Android Studio菜单栏操作:File -> Invalidate Caches... -> Invalidate and Restart
    2. 或在终端运行命令:
      # macOS/Linux
      ./gradlew clean build --refresh-dependencies
      # Windows
      gradlew.bat clean build --refresh-dependencies
      
  • 排查网络与依赖冲突

    • 确认网络可正常访问JitPack,必要时切换网络环境
    • 运行./gradlew app:dependencies查看依赖树,排查是否存在依赖冲突问题

内容的提问来源于stack exchange,提问作者TwoStarII

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 05:12:06