【问题标题】:signing apk error "other" has different root签署apk错误“其他”有不同的根
【发布时间】:2020-12-01 00:08:30
【问题描述】:

最近我用其他名称复制了我的 android 项目,然后在 git hub 上制作了一个 ribo 并将我的项目推送到它,但是当我想签署 apk 时,我得到了这个错误

             FAILURE: Build failed with an exception.
        
                      * What went wrong:
                      Execution failed for task ':app:signReleaseBundle'.
                      > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
                      > 'other' has different root
        
                      * Try:
                      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
        
                      * Get more help at https://help.gradle.org
        
                      BUILD FAILED in 56s

【问题讨论】:

    标签: java android gradle code-signing-certificate


    【解决方案1】:

    第一个解决方案

    org.gradle.jvmargs=-Xmx4608m
    

    第二个解决方案

    File > Invalidate Caches/Restart... 
    

    第三个解决方案 禁用高级分析。在这里找到它:

    Run -> Edit Configurations -> Profiling -> Enable advanced profiling
    

    第四个解决方案

    Enable multidex
    

    【讨论】:

      猜你喜欢
      • 2015-06-18
      • 2013-03-16
      • 2015-08-06
      • 2019-08-17
      • 1970-01-01
      • 2020-04-08
      • 2011-12-03
      • 2014-10-21
      • 2016-12-11
      相关资源
      最近更新 更多