我正在使用 HERE Android SDK Premium Edition Evaluation 版本。我在我的应用程序中复制了BasicMapActivity
但是当我尝试初始化mapFragment
时,我在标题中收到了错误报告。我仔细检查了我计划中报告的凭据。我无法理解为什么我总会收到这个错误。谁能帮助我理解?
这是我的 AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.opti.routingdemoapp">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<application
android:hardwareAccelerated="true"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.opti.routingdemoapp.BasicMapActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="com.here.android.mpa.service.MapService"
android:label="HereMapService"
android:process="global.Here.Map.Service.v2"
android:exported="true" >
<intent-filter>
<action android:name="com.here.android.mpa.service.MapService" >
</action>
</intent-filter>
</service>
<meta-data android:name="com.here.android.maps.appid"
android:value="lj9AGjf7NkRmVtQcnCy6"/>
<meta-data android:name="com.here.android.maps.apptoken"
android:value="1_QQ9-svVHpi5y9AnzW1uQ"/>
<meta-data android:name="com.here.android.maps.license.key"
android:value="c7Ij7a7NI78bBCJezCICLpvhJA1swhHbyvJQkIEL4w99SCeXr0npnK8BGEeFYmJje8dD0mOwxeDjXoOotTsTnckJUQsl0sDLVs1g/pPF0Fws6U/4Dhj+2Qvhk/OU7L/ZCK6gXuu5OJP4L6p+/oEcsvHcGpPS7JqkQQ2sMtl4qq5HNQpy18ALZywAD+hKppgkyZzfxqXNqMz1lRbaJMk6RjkxkjnX1B3V0ujvXZ6zO/WOotJ2SlI/Up8C5bc1zimo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pfv90MYoI8w8Au1jYzx0Dq8JEqgQvzyl7tfr/Pw4GfBTRpFKPUSkRqp1oX6Us5nKNTUcbolbskPUwl9zlBidlpl2uO7hDKFB52zPgWYJ+BjmQ2CWK0plhdtJfFBMcpBOSxHzEPtZo5cmptdXDJeC5aFzvV5BT/lPWMw7pA1GR4URo=
提前感谢任何建议。
答案 0 :(得分:0)
应用程序包名称&#34; com.opti.routingdemoapp.BasicMapActivity&#34;匹配您提供给developer.here.com的那个以生成权限密钥?
问题可能是此AndroidManifest文件中的命名空间与您提供的名称空间不匹配。