Codenameone 导致android构建失败的警告

Codenameone 导致android构建失败的警告,codenameone,Codenameone,我有原生的android代码,我将其与我的应用程序捆绑在一起。这已经持续了好几个月了。但今天,同样的代码出现了警告。我认为上一次成功构建是在两天前: -- Note: there were 5 references to unknown classes. You should check your configuration for typos. (http://proguard.sourceforge.net/manual/troubleshoo

我有原生的android代码,我将其与我的应用程序捆绑在一起。这已经持续了好几个月了。但今天,同样的代码出现了警告。我认为上一次成功构建是在两天前:

--    
Note: there were 5 references to unknown classes.
          You should check your configuration for typos.
          (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
    Note: there were 1927 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 2 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 4 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 23 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)
    Exception while processing task 
    java.io.IOException: Please correct the above warnings first.
        at proguard.Initializer.execute(Initializer.java:473)
        at proguard.ProGuard.initialize(ProGuard.java:233)
        at proguard.ProGuard.execute(ProGuard.java:98)
        at proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074)
        at com.android.build.gradle.tasks.AndroidProGuardTask.doMinification(AndroidProGuardTask.java:139)
        at com.android.build.gradle.tasks.AndroidProGuardTask$1.run(AndroidProGuardTask.java:115)
        at com.android.builder.tasks.Job.runTask(Job.java:48)
        at com.android.build.gradle.tasks.SimpleWorkQueue$EmptyThreadContext.runTask(SimpleWorkQueue.java:41)
        at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:227)
        at java.lang.Thread.run(Thread.java:745)
    :proguardRelease (Thread[Daemon worker,5,main]) completed. Took 6.197 secs.
    :dexRelease (Thread[Daemon worker,5,main]) started.
    :dexRelease
    Executing task ':dexRelease' (up-to-date check took 0.058 secs) due to:
---

所以,我发现,如果出现警告,proguard任务将停止执行。在搜索网络时,我们会发现处理这些问题的各种方法,但底线是确保您修复了警告。

android版本已切换到gradle,这可能会导致一些问题。以上跟踪不是真正的问题,请在日志中查找真正的问题谢谢。是的,最后我刚刚修复了发出警告的代码,它通过了