gpt4 book ai didi

Android MapFragment 运行时错误 - 找不到类 'maps.j.k'

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:27:54 25 4
gpt4 key购买 nike

我使用 SupportMapFragment 取得了圆满成功。我一点问题都没有。

但是我在我的应用程序运行时遇到错误。我在 Gingerbread Phone 上运行,它有最新的 GooglePlay。另请注意,我正在使用 SupportMapFragment 和其他支持类来迎合 pre-Honeycomb。

Could not find class 'maps.j.k', referenced from method maps.y.ae.a`

一旦我膨胀我的 View 就会发生错误。

inflater.inflate(R.layout.fragment_map, container, false);

我的布局文件(fragment_map.xml):

<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1" />

堆栈跟踪(出错时):

Thread [<1> main] (Suspended)   
<VM does not provide monitor information>
PhoneLayoutInflater(LayoutInflater).inflate(int, ViewGroup, boolean) line: 322
MapsFragment.onCreateView(LayoutInflater, ViewGroup, Bundle) line: 90
MapsFragment(Fragment).performCreateView(LayoutInflater, ViewGroup, Bundle) line: 1460
FragmentManagerImpl.moveToState(Fragment, int, int, int, boolean) line: 911
FragmentManagerImpl.moveToState(int, int, int, boolean) line: 1088
BackStackRecord.run() line: 682
FragmentManagerImpl.execPendingActions() line: 1444
FragmentManagerImpl$1.run() line: 429
FragmentActivity$1(Handler).handleCallback(Message) line: 587
FragmentActivity$1(Handler).dispatchMessage(Message) line: 92
Looper.loop() line: 150
ActivityThread.main(String[]) line: 4277
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 507
ZygoteInit$MethodAndArgsCaller.run() line: 839
ZygoteInit.main(String[]) line: 597
NativeStart.main(String[]) line: not available [native method]

我的 Fragment 类(包含 SupportMapFragment)

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);

View v = inflater.inflate(R.layout.fragment_maps, container, false);
return v;
}

here 所述,我在我的 list 中拥有所有必需的权限.

它没有引起任何问题,但我很好奇它的含义。我还没有找到任何答案

最佳答案

这是使用支持 fragment https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw 的 google maps api V2 快速入门指南

这可能会帮助您解决问题 Unable instantiate android.gms.maps.MapFragment

希望这些对您有所帮助。 :-)

关于Android MapFragment 运行时错误 - 找不到类 'maps.j.k',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14823723/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com