【问题标题】:Codenameone Build Server FailCodenameone 构建服务器失败
【发布时间】:2017-07-29 13:09:17
【问题描述】:

在尝试将我的 Android 应用程序构建为 APK 时,构建服务器出错并且无法构建。但是,在模拟器中,应用程序工作正常,我认为错误的类是由编译器创建的(它不是应用程序内部的一个)

这是错误日志:-

:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no 

previous execution, etc.).
file or directory '/tmp/build4365298428607247775xxx/Main/src/debug/java', not found
Compiling with JDK Java compiler API.
/tmp/build4365298428607247775xxx/Main/src/main/java/com/<hidden this package name for privacy>/salestraining/MainStub.java:176: error: cannot find symbol
        Display.getInstance().callSerially(new Runnable() { public void run() {i.destroy();} });
                                                                                ^
  symbol:   method destroy()
  location: variable i of type Main
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:compileDebugJavaWithJavac FAILED
:compileDebugJavaWithJavac (Thread[Daemon worker,5,main]) completed. Took 7.165 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

【问题讨论】:

    标签: java codenameone


    【解决方案1】:

    您从主类中删除了destroy() 回调方法。主类应该包含4个不抛出异常的方法:

    public void init(Object) {}
    public void start() {}
    public void stop() {}
    public void destroy() {}
    

    【讨论】:

      猜你喜欢
      • 2018-02-14
      • 1970-01-01
      • 2023-03-31
      • 2021-03-29
      • 2018-11-27
      • 2016-02-27
      • 1970-01-01
      • 2018-08-08
      • 1970-01-01
      相关资源
      最近更新 更多