【问题标题】:Android Gradle ProjectAndroid Gradle 项目
【发布时间】:2014-09-29 12:58:03
【问题描述】:

运行 gradle build 时出现以下错误。我想我错过了 build.gradle 中的一些地方,

  • 出了什么问题: 发现任务 ':checkFreeDebugManifest' 的配置有问题。

    为 prope 指定的文件 'E:\MyWorkspace\android\src\main\AndroidManifest.xml' rty 'manifest' 不存在。

提前致谢。

【问题讨论】:

    标签: android gradle


    【解决方案1】:

    在您的“主”文件夹中创建一个 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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-22
      • 2015-06-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多