我是 android 开发的新手。我在第一个项目中使用 db4o 数据库。但我收到以下代码错误:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//only want to get the configuration
EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration();//This one will popup
}
the error log :
06-14 20:15:30.249: W/dalvikvm(445): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
06-14 20:15:30.249: E/AndroidRuntime(445): Uncaught handler: thread main exiting due to uncaught exception
06-14 20:15:30.289: E/AndroidRuntime(445): java.lang.NoClassDefFoundError: com.db4o.Db4oEmbedded
06-14 20:15:30.289: E/AndroidRuntime(445): at com.hlh.AtestActivity.onCreate(AtestActivity.java:34)
06-14 20:15:30.289: E/AndroidRuntime(445): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-14 20:15:30.289: E/AndroidRuntime(445): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
我感到很困惑,为什么我在java项目中使用它时它可以工作,但它在android项目中不起作用Android中是否有一些限制?