我正在使用最新版本的 Android Studio 0.8.14。
在使用 android 5.0 为电视创建新项目后,我收到一个 gradle 错误说明。
The markup in the document proceding the root element must be well-formed
Problem was found with the config task app:generateDebugBuildConfig
在查看 androidmanifest 后,我发现了一些问题。这是一个全新的项目。有任何想法吗 ?
我将清单放在下面,您可以清楚地看到原始和添加的单词。似乎是一些合并问题或什么?
我尝试删除原始标记和无效标记。但这似乎不起作用。我现在收到一个错误说
“清单合并失败:AndroidManifest.xml 清单中的主要 AndroidManifest.xml:未声明包属性”
这是原始清单,未触及。
<<<<<<< Original
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.testme.myapplication">
<application android:allowBackup="true" android:label="@string/app_name"
android:icon="@drawable/ic_launcher" android:theme="@style/AppTheme">
</application>
</manifest>
=======
<manifest xmlns:android="http://schemas.android.com/apk/res/android" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<application
android:label="@string/app_name"
android:theme="@style/Theme.Leanback"
android:allowBackup="false">
<activity android:name="com.testme.myapplication.MainActivity"
android:logo="@drawable/app_icon_quantum"
android:screenOrientation="landscape"
android:label="@string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="PlayerActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
<activity android:name="com.testme.myapplication.DetailsActivity" />
</application>
</manifest>
>>>>>>> Added