无法构建android项目,总是得到这个错误INSTALL PARSE FAILED MANIFEST MALFORMED
,尽管前几天我能够在Linux上构建和运行它。从那以后,代码中没有任何变化,但现在我正在Windows上做这件事。 我读过类似的问题,他们说,问题出在软件包名称上,它不应该包含大写字母。但这种情况并非如此。构建Android项目时出错
这是我AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.pxlth.connector">
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:allowBackup="true"
android:icon="@drawable/rounded_corners"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".SplashActivity"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".StationSettings"
android:label="@string/action_settings"
android:parentActivityName=".MainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".BluetoothEnable"
android:theme="@style/NoActionBarDialog" />
<service
android:name=".BackgroundService"
android:label="@string/app_name"
android:process=":background" />
<receiver
android:name=".AutoStartReceiver"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
</application>
</manifest>
你试过在一个XML验证运行您的代码?我刚刚做了,它说这是不正确的,这正是你的错误所暗示的。 –
刚刚通过XML验证器,显示没有错误 – Tony