【发布时间】:2014-09-29 12:58:03
【问题描述】:
运行 gradle build 时出现以下错误。我想我错过了 build.gradle 中的一些地方,
- 出了什么问题:
发现任务 ':checkFreeDebugManifest' 的配置有问题。
为 prope 指定的文件 'E:\MyWorkspace\android\src\main\AndroidManifest.xml' rty 'manifest' 不存在。
【问题讨论】:
运行 gradle build 时出现以下错误。我想我错过了 build.gradle 中的一些地方,
为 prope 指定的文件 'E:\MyWorkspace\android\src\main\AndroidManifest.xml' rty 'manifest' 不存在。
【问题讨论】:
在您的“主”文件夹中创建一个 AndroidManifest.xml 文件。它不见了。 一个例子可以是:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.something" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<!-- Define your activities and other stuffs here. -->
</application>
</manifest>
【讨论】: