提交CN1 Android Build时出错

时间:2016-03-28 17:34:55

标签: codenameone

尝试为Android版本发送/提交我的CN1项目时收到以下错误。我正在使用Eclipse,它在本地构建并在模拟器中运行。

构建换机器人装置:

建立失败 C:\ MyData \ Projects \ coden1_playground \ MyAssistant \ build.xml:468:java.lang.NullPointerException     在com.codename1.build.client.CodeNameOneBuildTask.execute(CodeNameOneBuildTask.java:273)     在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)     at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)     at org.apache.tools.ant.Task.perform(Task.java:348)     在org.apache.tools.ant.Target.execute(Target.java:435)     在org.apache.tools.ant.Target.performTasks(Target.java:456)     在org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)     在org.apache.tools.ant.Project.executeTarget(Project.java:1364)     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)     在org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)     在org.apache.tools.ant.Project.executeTargets(Project.java:1248)     在org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:705)     在org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:527)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     在org.eclipse.ant.core.AntRunner.run(AntRunner.java:371)     在org.eclipse.ant.core.AntRunner.run(AntRunner.java:473)     at codenameoneplugin.actions.SendBuild $ 1.run(SendBuild.java:47)     在java.lang.Thread.run(未知来源)

总时间:9秒

任何帮助将不胜感激!谢谢!

1 个答案:

答案 0 :(得分:0)

您是否删除了icon.png或删除了您指向的文件?

您是否用非图像文件替换它?

应用程序的图标必须是512x512 png格式图像。