Android 谷歌地图在安卓系统上运行良好,但我仍然得到一个错误;找不到类';maps.i.k';,参考方法maps.z.ag.a“;
通过下载该库,将其添加到工作区,然后将其作为库引用,我让GoogleMapsAndroidAPIv2在我的Android应用程序上完美运行 但是,当包含映射片段的活动开始时,我仍然会收到这个错误Android 谷歌地图在安卓系统上运行良好,但我仍然得到一个错误;找不到类';maps.i.k';,参考方法maps.z.ag.a“;,android,android-maps,android-library,google-maps-mobile,android-debug,Android,Android Maps,Android Library,Google Maps Mobile,Android Debug,通过下载该库,将其添加到工作区,然后将其作为库引用,我让GoogleMapsAndroidAPIv2在我的Android应用程序上完美运行 但是,当包含映射片段的活动开始时,我仍然会收到这个错误 Could not find class 'maps.i.k', referenced from method maps.z.ag.a 顺便说一下,我正在使用支持图片段 这个错误似乎不会对我产生任何影响,也不会使应用程序崩溃或发生任何事情,我是否应该费心修复它 添加了清单p.S E\u selectT
Could not find class 'maps.i.k', referenced from method maps.z.ag.a
顺便说一下,我正在使用支持图片段
这个错误似乎不会对我产生任何影响,也不会使应用程序崩溃或发生任何事情,我是否应该费心修复它
添加了清单p.S E\u selectTourney是我显示和使用地图的地方
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.HelloMap.AndroidApp"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<permission
android:name="com.HelloMap.AndroidApp.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.HelloMap.AndroidApp.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<application
android:allowBackup="true"
android:configChanges="orientation"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/Theme.Sherlock" >
<uses-library
android:name="com.google.android.maps"
android:required="true" />
<activity
android:name="com.HelloMap.AndroidApp.A_SplashScreen"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.HelloMap.AndroidApp.B_TourSlides"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.C_RegisterLogin"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity android:name="com.facebook.LoginActivity" />
<activity
android:name="com.HelloMap.AndroidApp.D_RegistrationPage"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.E_SelectJourney"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.F_EnterFromToAddress"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.G_PickDateTime"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.H_ConfirmContact"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.I_MobileVerification"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.J_AvailableTaxis"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.K_SpecialRequirements"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.L_JourneyOverview"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.M_PaymentOptions"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.HelloMap.AndroidApp.N_Confirmation"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBoWsWNaUTWyHxGuJuNehzfbNvyTv1zIeA" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="141236504136755" />
</application>
</manifest>
在清单文件中添加此库。我不确定,但另一个问题的错误中包含相同的错误,在这种情况下,应用程序没有正确签名。如果这是一个问题,你需要在专业部署你的应用程序之前解决它,因为它只能在调试模式下工作 试试这个指南 删除此代码:
<uses-library
android:name="com.google.android.maps"
android:required="true" />
就像这样:
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBoWsWNaUTWyHxGuJuNehzfbNvyTv1zIeA" />
</application>
并以某种形式呈现结果。您不必担心那些Dalvik警告。我相信这些都会出现,因为谷歌地图库编译到的API级别高于手机上运行的API级别。一些在更高的API上可用的类在您的手机上不可用,但库必须有一些代码来弥补这一点。我终于做到了!如果您使用的是SupportFragmentMap,我认为您应该在api控制台上打开google maps android v2,因为我使用的是google maps v2,它与FragmentMap配合得很好,但当我更改SupportFragmentMap以包含froyo和gingerbread兼容性时,它没有运行。我花了4个小时搜索、尝试、编码、更改键、库、更新和。。。我刚刚打开了谷歌安卓地图v2,关闭了谷歌地图v2,现在它开始工作了!非常感谢 这里也一样!你让它工作了吗?没有,仍然有完全相同的错误,但应用程序总是工作良好,这有帮助吗@jermel我完全遵循了它,但仍然不知道我的问题你在应用程序中启用了proguard吗?没有,已经有了Google Map API V2Don不需要的,不要混合使用Google Maps API V1和V2I我已经为我的应用程序签署了调试和发布密钥,我在调试模式下遇到了这个错误,所以现在让我们暂时搁置发布模式,请看一下我的清单,告诉我有什么不对劲。我按照指南做的,我仍然找不到我的问题。请看一下我的清单,告诉我我有什么不对劲。嗯。。看起来不错。我认为您的散列密钥有问题,请尝试使用openssl for sha-1。下载openssl-0.9.8e_X64(openssl-0.9.8k_X64不会提供正确的哈希值)它是这样的
“C:\Program Files(x86)\Java\jdk1.7.0\u 07\bin\keytool”-exportcert-别名atif-密钥库“H:\Android\All alias\Get Inspired\Get Inspired”;“C:\O Penssl\bin\openssl”sha1-binary\C:\Opesnsssl\bin\openssl”base64
顺便说一句,出于隐私原因,我在这个问题中故意更改了api密钥,但我肯定会尝试你说的。等等,我不记得在谷歌使用openssl,只在facebook上使用过它。是的,我不知道为什么我要使用你在评论中给我的命令。根据你的所有提示,仍然会出现相同的错误,我记得我做过类似的事情,但是我怎么/在哪里可以检查呢?谁知道,可能只是那样。@EmilAdz我遇到了同样的错误,我执行了你在这里写的所有任务,但我看不到地图,may min api是8,target api是16@chintankhetiya,请打开另一个问题并在此处发布链接,我会尽力帮助你的。请浏览我在这里发布的谷歌地图指南帖子,并确保在发布问题之前完成所有步骤。非常正确,我正在android Froyo API 8上运行它
<uses-library
android:name="com.google.android.maps"
android:required="true" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBoWsWNaUTWyHxGuJuNehzfbNvyTv1zIeA" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBoWsWNaUTWyHxGuJuNehzfbNvyTv1zIeA" />
</application>
String LicenseInfo = GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(getApplicationContext());