[英]StandOut Android Libarary Examples Crashing
Every time i run the sample floating apps that come with the library the app crashes and i get class not found errors in the logcat. 每次我运行库附带的示例浮动应用程序时,应用程序崩溃,并且在logcat中出现类未找到错误。 If i remove all refrences to the class in question i simply get a class not found error for another class. 如果我删除所有对相关类的引用,我只会得到另一个类的未找到类错误。 Im not sure how to add a logcat so i put it here . 我不确定如何添加logcat,所以我把它放在这里 。 And here is the code for the main class. 这是主类的代码。
package wei.mark.example;
import wei.mark.standout.StandOutWindow;
import android.app.Activity;
import android.os.Bundle;
public class StandOutExampleActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
StandOutWindow.closeAll(this, SimpleWindow.class);
StandOutWindow.closeAll(this, MultiWindow.class);
StandOutWindow.closeAll(this, WidgetsWindow.class);
// show a MultiWindow, SimpleWindow
StandOutWindow
.show(this, SimpleWindow.class, StandOutWindow.DEFAULT_ID);
StandOutWindow.show(this, MultiWindow.class, StandOutWindow.DEFAULT_ID);
StandOutWindow.show(this, WidgetsWindow.class,
StandOutWindow.DEFAULT_ID);
// show a MostBasicWindow. It is commented out because it does not
// support closing.
StandOutWindow.show(this, MostBasicWindow.class,
StandOutWindow.DEFAULT_ID);
finish();
}
} }
由于某种原因,重新导入库解决了我的问题。
After you import the project, you should add the standOut project as library to standOutExample project. 导入项目后,应将standOut项目作为库添加到standOutExample项目。 This should not be done by the "auto fixed" from eclipse (it will import the library into java path rather than android path) 这不应该通过Eclipse的“自动修复”来完成(它将库导入Java路径而不是android路径)
The steps to import library project into android project in eclipse: 在eclipse中将库项目导入到android项目的步骤:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.