我写了一个配置文件明明引入了外部包了但是就是说找不着类,请帮忙看看

找到组织 发布于 2013/01/30 20:37
阅读 969
收藏 0

<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent">
 
<com.baidu.mapapi.MapView android:id="@+id/bmapView"
 android:layout_width="fill_parent" android:layout_height="fill_parent"
 android:clickable="true"    
/>

</LinearLayout>

 

下面是报的错:

01-30 20:31:02.492: E/AndroidRuntime(15285): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.map/com.example.map.MainActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class com.baidu.mapapi.MapView
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.ActivityThread.access$600(ActivityThread.java:130)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.os.Handler.dispatchMessage(Handler.java:99)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.os.Looper.loop(Looper.java:137)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.ActivityThread.main(ActivityThread.java:4745)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at java.lang.reflect.Method.invokeNative(Native Method)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at java.lang.reflect.Method.invoke(Method.java:511)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at dalvik.system.NativeStart.main(Native Method)
01-30 20:31:02.492: E/AndroidRuntime(15285): Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class com.baidu.mapapi.MapView
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.Activity.setContentView(Activity.java:1867)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at com.example.map.MainActivity.onCreate(MainActivity.java:12)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.Activity.performCreate(Activity.java:5008)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
01-30 20:31:02.492: E/AndroidRuntime(15285):  ... 11 more
01-30 20:31:02.492: E/AndroidRuntime(15285): Caused by: java.lang.ClassNotFoundException: com.baidu.mapapi.MapView
01-30 20:31:02.492: E/AndroidRuntime(15285):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.view.LayoutInflater.createView(LayoutInflater.java:552)
01-30 20:31:02.492: E/AndroidRuntime(15285):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
01-30 20:31:02.492: E/AndroidRuntime(15285):  ... 21 more
01-30 20:33:37.157: E/Trace(15474): error opening trace file: No such file or directory (2)
01-30 20:33:37.172: V/ContextThemeWrapper(15474): setTheme getClassName = android.app.ActivityThread
01-30 20:33:37.212: D/AndroidRuntime(15474): Shutting down VM
01-30 20:33:37.212: W/dalvikvm(15474): threadid=1: thread exiting with uncaught exception (group=0x41a3c300)
01-30 20:33:37.217: E/AndroidRuntime(15474): FATAL EXCEPTION: main
01-30 20:33:37.217: E/AndroidRuntime(15474): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.map/com.example.map.MainActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class com.baidu.mapapi.MapView
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.ActivityThread.access$600(ActivityThread.java:130)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.os.Handler.dispatchMessage(Handler.java:99)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.os.Looper.loop(Looper.java:137)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.ActivityThread.main(ActivityThread.java:4745)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at java.lang.reflect.Method.invokeNative(Native Method)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at java.lang.reflect.Method.invoke(Method.java:511)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at dalvik.system.NativeStart.main(Native Method)
01-30 20:33:37.217: E/AndroidRuntime(15474): Caused by: android.view.InflateException: Binary XML file line #12: Error inflating class com.baidu.mapapi.MapView
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.Activity.setContentView(Activity.java:1867)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at com.example.map.MainActivity.onCreate(MainActivity.java:12)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.Activity.performCreate(Activity.java:5008)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
01-30 20:33:37.217: E/AndroidRuntime(15474):  ... 11 more
01-30 20:33:37.217: E/AndroidRuntime(15474): Caused by: java.lang.ClassNotFoundException: com.baidu.mapapi.MapView
01-30 20:33:37.217: E/AndroidRuntime(15474):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.view.LayoutInflater.createView(LayoutInflater.java:552)
01-30 20:33:37.217: E/AndroidRuntime(15474):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)

 

加载中
返回顶部
顶部