申请证书时编译到 Andriod 时出错

Error on compile to Andriod when apply certificate

我的应用程序编译 android ok。

当我创建 android 证书并将其发送给代号编译器时,它无法编译。

我试过用keytool生成证书,用codenameone上的assistant试过,结果差不多。

如果我删除密钥库文件并重新发送到仪表板,应用程序编译正常。

这是日志错误


    Note: there were 3 references to unknown classes.
      You should check your configuration for typos.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
    Note: there were 1 references to unknown class members.
      You should check your configuration for typos.
    Note: there were 22 unkept descriptor classes in kept class members.
      You should consider explicitly keeping the mentioned classes
      (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
    Note: there were 17 unresolved dynamic references to classes or interfaces.
      You should check if you need to specify additional program jars.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
    Note: there were 5 class casts of dynamically created class instances.
      You might consider explicitly keeping the mentioned classes and/or
      their implementations (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast)
    Warning: there were 25 unresolved references to classes or interfaces.
         You may need to add missing library jars or update their versions.
         If your code works fine without the missing classes, you can suppress
         the warnings with '-dontwarn' options.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
    Warning: there were 2 unresolved references to program class members.
         Your input classes appear to be inconsistent.
         You may need to recompile the code.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
        Warning: Exception while processing task java.io.IOException: Please correct the above warnings 
  first.
    :transformClassesAndResourcesWithProguardForRelease FAILED
    :transformClassesAndResourcesWithProguardForRelease (Thread[Task worker for ':',5,main]) completed. Took 3.21 secs.
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':transformClassesAndResourcesWithProguardForRelease'.
    > Job failed, see logs for details
    
    * Try:
    Run with --debug option to get more log output. Run with --scan to get full insights.
    
    * Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
   ':transformClassesAndResourcesWithProguardForRelease'.
        at 
 

这与证书无关。它在证书之前的混淆阶段失败。这些错误是出了名的难以阅读,而且你似乎剪得太晚了。我需要上面的部分,其中包含有关 class/method 未找到的详细警告。

转到错误并向上滚动一点,寻找一个熟悉的 class 名称,旁边有混淆警告。这是 class 引起的问题,可能是因为缺少依赖项。如果您找不到它,只需 post 记录 link 到网站聊天,我们的支持人员会为您检查。