简体   繁体   English

源附件不包含文件 PApplet.class 的源

[英]The source attachment does not contain the source for the file PApplet.class

I'm making a sound toy for Android using Android Processing.我正在使用 Android 处理为 Android 制作一个声音玩具。 I first wrote the code in the Processing editor, but am now bringing it in to Eclipse to take advantage of a sound library called libpd.我首先在处理编辑器中编写代码,但现在将其引入 Eclipse 以利用名为 libpd 的声音库。 I tried to run the app on my phone, but got the following errors from the debug window:我尝试在手机上运行该应用程序,但在调试 window 时出现以下错误:

Main(PApplet).die(String) line: 2451    
Main(PApplet).die(String, Exception) line: 2460 
Main(PApplet).loadFont(String) line: 3625   
Main.setup() line: 62   
Main(PApplet).handleDraw() line: 1779   
PGraphicsAndroid2D.requestDraw() line: 161  
Main(PApplet).run() line: 1670  
Thread.run() line: 1019 

What confuses me is that one of the errors is about being unable to find a font file.让我感到困惑的是,其中一个错误是关于无法找到字体文件。 I put all the necessary vector image files, and the font file in particular in the project's assets folder, so I'm not sure what is a happening there.我把所有必要的矢量图像文件,特别是字体文件放在项目的资产文件夹中,所以我不确定那里发生了什么。

Mainly, the errors seem to be concerned that "the source attachment does not contain the source for the file PApplet.class".主要是,错误似乎与“源附件不包含文件 PApplet.class 的源”有关。 I have imported the processing.core.* to all of my classes, and the main class extends PApplet.我已将 processing.core.* 导入我的所有课程,并且主要的 class 扩展了 PApplet。 In a similar project I do not get this error.在类似的项目中,我没有收到此错误。

Here is the code of my main class, if you need me to clarify anything don't hesitate to ask.是我的主要 class 的代码,如果您需要我澄清任何事情,请不要犹豫。 Sorry, the code is pretty ugly...对不起,代码很丑...

EDIT: Here is the link to the Android processing page.编辑:是 Android 处理页面的链接。

So it turns out I inadvertently added a space character in the name of the font file.所以事实证明我无意中在字体文件的名称中添加了一个空格字符。 It was named "HelveticaNeue-48.vlw ", which caused the slew of errors when I referred to it without the space.它被命名为“HelveticaNeue-48.vlw”,当我在没有空格的情况下引用它时会导致大量错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 源附件不包含文件logger.class的源 - The source attachment does not contain the source for the file logger.class 源附件不包含文件JSON.class的源 - The source attachment does not contain the source for the file JSON.class 错误源附件不包含文件parse.class的源 - Error source attachment does not contain the source for the file parse.class 源附件不包含文件MenuInflater.class的源 - Source attachment does not contain the source for the file MenuInflater.class 源附件不包含文件 Throwables.class 的源 - the source attachment does not contain the source for the file Throwables.class GWT webappcreator创建Maven项目:源附件不包含文件URLClassPath.class的源 - GWT webappcreator creating a Maven project: the source attachment does not contain the source for the file URLClassPath.class Java错误:源文件错误:文件不包含类 - Java Error: bad source file: file does not contain class 错误:不包含Thread.class的源-类文件编辑器 - ERROR: Does not contain source for Thread.class - Class File Editor KSOAP2错误不包含文件HttpTransport.class的源 - KSOAP2 error does not contain source for the file HttpTransport.class Java 错误 - 错误的源文件:文件不包含类 x 。 请删除或确保它出现 - Java error - bad source file: file does not contain class x . Please remove or make sure it appears
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM