1

我正在使用 novoda 项目来使用 jar gps 定位器(https://github.com/novoda/Novocation),所以我继续在清单文件上收到相同的错误 - “属性缺少 android 命名空间前缀”,无法弄清楚为什么,想法?这是一个非常糟糕的事情,因为通过文档和示例应用程序,我真的可以使用他的 gps 定位器......

这是我的清单文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.mappermate"
  android:versionCode="1"
  android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="13" />
<!-- Permissions -->
<uses-permission android:name="android.permission.INTERNET" >
</uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" >
</uses-permission>
<uses-permission android:name="android.permission.CALL_PHONE" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" >
</uses-permission>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<application
    android:name="com.mappermate.application.MappermateApp"
    android:icon="@drawable/ic_launcher"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
    <uses-library android:name="com.google.android.maps" />

    <!-- Uploader Activity -->
    <activity android:name="com.mappermate.ui.phone.UploaderActivity" >
    </activity>

    <!-- Login Activity -->
    <activity android:name="com.mappermate.ui.phone.LoginActivity" />

    <!-- Register Activity -->
    <activity android:name="com.mappermate.ui.phone.RegisterActivity" />

    <!-- Authentication Activity -->
    <activity android:name="com.mappermate.ui.phone.AuthenticationActivity" />

    <!-- Exit Activity -->
    <activity android:name="com.mappermate.ui.phone.ExitActivity" />

    <!-- Main Menu Activity -->
    <activity android:name="com.mappermate.ui.phone.Delete_MainMenuActivity" />

    <!-- Preferences Activity -->
    <activity
        android:name="com.mappermate.ui.phone.PreferencesActivity"
        android:theme="@style/PreferencesTheme" >
    </activity>

    <!-- My Location Activity -->
    <activity
        android:name="com.mappermate.ui.phone.MapperMateScreen"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <receiver android:name="com.novoda.location.receiver.ActiveLocationChanged" >
        <intent-filter>
            <action android:name="com.novoda.location.ACTIVE_LOCATION_UPDATE_ACTION" />
        </intent-filter>
    </receiver>
    <receiver android:name="com.novoda.location.receiver.PassiveLocationChanged" />
    <receiver
        android:name="com.novoda.location.receiver.RestorePassiveListenerOnRestoredConnectivity"
        enabled="false" >
        <intent-filter>
            <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
        </intent-filter>
    </receiver>
    <receiver android:name="com.novoda.location.receiver.StopPassiveLocationUpdatesOnLowBattery" >
        <intent-filter>
            <action android:name="android.intent.action.BATTERY_LOW" />
            <action android:name="android.intent.action.BATTERY_OKAY" />
        </intent-filter>
    </receiver>
    <receiver android:name="com.novoda.location.receiver.RestorePassiveListenerBoot" >
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>
</application>

4

1 回答 1

1

我能看到的错误是

enabled="false" 

需要是

android:enabled="false" 

此外,您需要添加

</manifest> 

在清单的末尾。

于 2013-02-14T23:00:03.833 回答