我得到了这些错误。我的程序是读取当前位置并路由地图路径..以前它在我的 Eclipse 上工作..我在一个月前检查过它们..当我今天再次尝试运行它时出现这些错误......“不幸的是 FirstMap 有停止”有人能告诉我是什么原因吗?是因为Eclipse吗?还是 SDK?还是API?我已经测试了 api 8 和 13 ..它不起作用
非常感谢
01-18 02:53:14.372: E/AndroidRuntime(806): FATAL EXCEPTION: main
01-18 02:53:14.372: E/AndroidRuntime(806): java.lang.RuntimeException: Unable to start activity ComponentInfo{my.android.map/my.android.map.MyMap}: java.lang.IllegalArgumentException: provider=network
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.ActivityThread.access$600(ActivityThread.java:123)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.os.Handler.dispatchMessage(Handler.java:99)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.os.Looper.loop(Looper.java:137)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.ActivityThread.main(ActivityThread.java:4424)
01-18 02:53:14.372: E/AndroidRuntime(806): at java.lang.reflect.Method.invokeNative(Native Method)
01-18 02:53:14.372: E/AndroidRuntime(806): at java.lang.reflect.Method.invoke(Method.java:511)
01-18 02:53:14.372: E/AndroidRuntime(806): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-18 02:53:14.372: E/AndroidRuntime(806): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-18 02:53:14.372: E/AndroidRuntime(806): at dalvik.system.NativeStart.main(Native Method)
01-18 02:53:14.372: E/AndroidRuntime(806): Caused by: java.lang.IllegalArgumentException: provider=network
01-18 02:53:14.372: E/AndroidRuntime(806): at android.os.Parcel.readException(Parcel.java:1331)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.os.Parcel.readException(Parcel.java:1281)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:646)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.location.LocationManager._requestLocationUpdates(LocationManager.java:589)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:453)
01-18 02:53:14.372: E/AndroidRuntime(806): at my.android.map.MyMap.onCreate(MyMap.java:104)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.Activity.performCreate(Activity.java:4465)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
01-18 02:53:14.372: E/AndroidRuntime(806): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
我的假设解决方案:
至于现在..问题仍然是一样的..
我现在更新我的 sdk eclipse..一旦更新完成..我会更新(18.01.13-今天)它在这里工作或不工作..