简体   繁体   中英

Android project gets java.lang.NoClassDefFoundError

I add project B to A's java build path: 在此处输入图片说明

and imported packageB in my A.java:

import com.example.mysensorlistener.MySensorListener;

but still get runtime error:

01-04 18:31:38.533: E/dalvikvm(9746): Could not find class 'com.example.mysensorlistener.MySensorListener', referenced from method com.example.huaweiproj.HuaweiProj.<init>

how can i fix that? dont tell me to copy&paste the java file directly....

在项目属性中添加到项目库,然后尝试导入它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM