编译Codename One项目时出错

时间:2017-03-14 15:29:28

标签: codenameone

我正在尝试建立一个我一年没有建立的项目。我有最新的代号一个插件,得到以下错误:

  

错误:包java.util.logging不存在          [javac] import java.util.logging.Level;

     

错误:找不到符号          [javac] import java.io.BufferedInputStream;

有关如何再次进行此编译的任何想法?我正在使用eclipse neon

刚刚意识到这些extensions正在用javase而不是android编译。 lib/impl/native/javase。我正在执行send android build,是否有我需要添加的设置?

Buildfile: /Users/sam/dev/wordtime5/codeone/codename1/build.xml

jar:
        [echo] Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller
        [echo]          code size and wider device support
        [copy] Copying 19 files to /Users/sam/dev/wordtime5/codeone/codename1/build/tmp
        [copy] Copying 37 files to /Users/sam/dev/wordtime5/codeone/codename1/build/tmp
       [javac] /Users/sam/dev/wordtime5/codeone/codename1/build.xml:147: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
       [javac] Compiling 101 source files to /Users/sam/dev/wordtime5/codeone/codename1/build/tmp
       [javac] Note: Some input files use unchecked or unsafe operations.
       [javac] Note: Recompile with -Xlint:unchecked for details.
        [copy] Copying 281 files to /Users/sam/dev/wordtime5/codeone/codename1/build/tmp
         [jar] Building jar: /Users/sam/dev/wordtime5/codeone/codename1/dist/CN1WordTime5.jar
       [javac] /Users/sam/dev/wordtime5/codeone/codename1/build.xml:171: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
       [javac] Compiling 32 source files to /Users/sam/dev/wordtime5/codeone/codename1/native/internal_tmp
       [javac] /Users/sam/dev/wordtime5/codeone/codename1/lib/impl/native/javase/com/codename1/admob/AdMobNativeImpl.java:16: error: package java.util.logging does not exist
       [javac] import java.util.logging.Level;
       [javac]                         ^
       [javac] /Users/sam/dev/wordtime5/codeone/codename1/lib/impl/native/javase/com/codename1/admob/AdMobNativeImpl.java:17: error: package java.util.logging does not exist
       [javac] import java.util.logging.Logger;
       [javac]                         ^
       [javac] /Users/sam/dev/wordtime5/codeone/codename1/lib/impl/native/javase/com/neovisionaries/ws/client/WebSocket.java:24: error: cannot find symbol
       [javac] import java.io.BufferedInputStream;
       [javac]               ^
       [javac]   symbol:   class BufferedInputStream
       [javac]   location: package java.io
       [javac] /Users/sam/dev/wordtime5/codeone/codename1/lib/impl/native/javase/com/neovisionaries/ws/client/WebSocket.java:25: error: cannot find symbol
       [javac] import java.io.BufferedOutputStream;
       [javac]               ^
       [javac]   symbol:   class BufferedOutputStream
       [javac]   location: package java.io
       [javac] /Users/sam/dev/wordtime5/codeone/codename1/lib/impl/native/javase/com/neovisionaries/ws/client/WebSocket.java:27: error: cannot find symbol
       [javac] import java.net.Socket;
       [javac]                ^
       [javac]   symbol:   class Socket
       [javac]   location: package java.net

1 个答案:

答案 0 :(得分:1)

当您使用自动try-catch进行异常时,通常会自动添加java Logger。

项目搜索renderDataTable,并删除其所有用法(包括它plugins)。

Codename One不支持

Logger,因为CN1拥有import Logger

相关问题