开发者

Problem with resolving superclass of a MapView ("Could not find class" problem)

开发者 https://www.devze.com 2023-02-11 05:46 出处:网络
I\'m trying to add MapView to one of my application. View with correct mapView is added. Permissions in Manifest are also following rules.

I'm trying to add MapView to one of my application. View with correct mapView is added. Permissions in Manifest are also following rules. Project compiles with out a problem. Library with maps is added.

But I'm still receiving this error.

Anyone had same problem and found a solution?

If you need more data, just let me know.

02-17 14:16:22.196: WARN/dalvikvm(20884): Unable to resolve superclass of Lnet/gynsoft/citydusseldorf/MapViewController; (27)
02-17 14:16:22.196: WARN/dalvikvm(20884):开发者_StackOverflow社区 Link of class 'Lnet/gynsoft/citydusseldorf/MapViewController;' failed
02-17 14:16:22.204: ERROR/dalvikvm(20884): Could not find class 'net.gynsoft.citydusseldorf.MapViewController', referenced from method net.gynsoft.citydusseldorf.startActivity$5.onClick
02-17 14:16:22.204: WARN/dalvikvm(20884): VFY: unable to resolve const-class 121 (Lnet/gynsoft/citydusseldorf/MapViewController;) in Lnet/gynsoft/citydusseldorf/startActivity$5;


Yes, you must have referenced maps.jar library externaly rather then selecting google add on platform target for your application.

Select Google API as a Target instead of adding maps.jar file externaly.

This will for sure remove this problem as i also faced it before


I usually get this error when I run an app that requires maps in the standard emulator. You need an emulator running Google API's as opposed to the standard one.

You can do this in the Android SDK and AVD manager.


Create lib folder, libs folder is for native libraries. I made it, add library to lib and to build path as internal library and it works!

0

精彩评论

暂无评论...
验证码 换一张
取 消