我加倍检查我的API密钥是对的,这是正确的,我加倍检查它是否正确。这是我的源码和XML,任何人都可以检查,看看有什么问题。另外,我确保我有互联网。
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permissions.INTERNET"/>
<uses-permission android:name="android.permissions.ACCESS_FINE_LOCATION"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="com.google.android.maps" />
<activity android:name=".CadetCommand"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="RedLight"></activity>
<activity android:name="PTCalculator"></activity>
<activity android:name="LandNav"></activity>
</application>
<uses-sdk android:minSdkVersion="4"/>
package edu.elon.cs.mobile;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;
public class LandNav extends MapActivity{
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.landnav);
}
@Override
protected boolean isRouteDisplayed() {
return false;
}
}
答案 0 :(得分:1)
<uses-permission android:name="android.permissions.INTERNET"/>
<uses-permission android:name="android.permissions.ACCESS_FINE_LOCATION"/>
应该是
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
注意android.permission
上缺少's'