【发布时间】: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