我有一个包 pkg1 说我将在 pkg2 中导入。
secondactivity.java:
package seconddemoapp.demoapp.demo;
public class seconddemoappActivity extends Activity
{
----
}
firstactivity.java:
package firstdemo.firstdemoapp.demo;
import seconddemoapp.demoapp.demo.seconddemoappActivity;
public class firstactivity extends Activity
{
------
Intent i = new Intent(firstactivity.this, seconddemoappActivity.class);
startActivity(i);
}
我收到“NoClassDefFoundError”seconddemoappActivity.class
我哪里错了?如何使用中的seconddemoactivity
类firstactivity
?