Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
335 views
in Technique[技术] by (71.8m points)

codenameone - Error on compile to Andriod when apply certificate

My app compile for android ok.

When I create the android certificate, and send to the codename compiler it don′t compile.

I tried to generate the certificate with the keytool and tried with the assitant on codenameone, the result is similar.

If I delete the keystore file and resend to the dashboard, the app compile ok.

This is the log errors


    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 
 
question from:https://stackoverflow.com/questions/65915904/error-on-compile-to-andriod-when-apply-certificate

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This has nothing to do with the certificate. It fails in the obfuscation stage before the certificate. These errors are notoriously hard to read and it seems you snipped it a bit too late. I need the section above that which includes the detailed warning about the class/method that isn't found.

Go to the error and scroll a bit higher and look for a familiar class name with a proguard warning next to it. This is the class causing a problem probably because of a missing dependency. If you can't find it just post the log link to the website chat and our support will look over that for you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...