我正在使用Codename One尝试在我的应用程序中提供一种通过本机界面访问设备名称和型号的方法。我看了教程,看起来很容易,但是当我右键单击界面并选择" Generate Native Access"时,我得到NoClassDefFoundError
。我试过一个干净/编译,我仍然得到错误。任何人都可以提供有关这可能是什么的任何信息吗?这是完整的堆栈跟踪:
IllegalName:com / tsi / gpflow / NativeDeviceInfo
java.lang.NoClassDefFoundError:IllegalName:com / tsi / gpflow / NativeDeviceInfo at java.lang.ClassLoader.preDefineClass(ClassLoader.java:654) at java.lang.ClassLoader.defineClass(ClassLoader.java:761) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) 在java.net.URLClassLoader.access $ 100(URLClassLoader.java:73) 在java.net.URLClassLoader $ 1.run(URLClassLoader.java:368) 在java.net.URLClassLoader $ 1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.codename1.plugin.intellij.actions.GenerateNativeAccessAction $ 1.buildFinished(GenerateNativeAccessAction.java:51) 在com.intellij.lang.ant.config.execution.AntBuildMessageView $ 6 $ 1 $ 1 $ 1.run(AntBuildMessageView.java:819) 在com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.fireEventsInWriteAction(RefreshSessionImpl.java:233) 在com.intellij.openapi.vfs.newvfs.RefreshSessionImpl $ 1 $ 1.run(RefreshSessionImpl.java:196) 在com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1009) 在com.intellij.openapi.vfs.newvfs.RefreshSessionImpl $ 1.run(RefreshSessionImpl.java:193) 在com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.fireEvents(RefreshSessionImpl.java:206) 在com.intellij.openapi.vfs.newvfs.RefreshQueueImpl $ 1 $ 1.run(RefreshQueueImpl.java:93) 在com.intellij.openapi.application.impl.LaterInvocator $ FlushQueue.runNextEvent(LaterInvocator.java:345) 在com.intellij.openapi.application.impl.LaterInvocator $ FlushQueue.run(LaterInvocator.java:329) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access $ 500(EventQueue.java:97) at java.awt.EventQueue $ 3.run(EventQueue.java:709) at java.awt.EventQueue $ 3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857) 在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658) 在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) 在java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
答案 0 :(得分:2)
我看到了一个错误。不幸的是,似乎我们只在Mac上测试了这个功能,而一些白痴(我)使用了/
而不是toggleClass()
符号。我们将在下一个应该在星期五(希望)的插件更新中解决这个问题。