Android-studio 3.4.0-3.4.2 Gradle错误:未为属性"manifestOutputDirectory"指定值 [英] Android-studio 3.4.0-3.4.2 Gradle ERROR: No value has been specified for property 'manifestOutputDirectory'

查看:601
本文介绍了Android-studio 3.4.0-3.4.2 Gradle错误:未为属性"manifestOutputDirectory"指定值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当升级到android-studio 3.4.x/gradle构建插件3.4.x/gradle 5.3时...想知道它是否与android插件有关.

when upgrading to android-studio 3.4.x/gradle build plugin 3.4.x /gradle 5.3 ... wondering if its an issue with the android plugin.

ERROR: No value has been specified for property 'manifestOutputDirectory'.

我的gradle脚本不使用与清单相关的变量,也没有更改清单.升级之前的版本是Android-Studio:3.3/Gradle原始版本:3.3.2/Gradle:5.3

My gradle script does not use manifest related variables, nor has it changed the manifest. The version before my upgrade is Android-Studio: 3.3/Gradle pulgin: 3.3.2/Gradle: 5.3

第一次更新(20190508):修复方法(临时)

First Update(20190508):Fix method(temporary)

找到一种临时修复方法,但是纠正错误的方法仍然未知. 避免方法: 我是Mac OS X系统:单击Android Studio->性能...->实验性 取消选中:仅同步活动版本.

Find a temporary fix method, but the method of correcting the error is still unknown. Ways to avoid: I am a Mac OS X system: Click Android Studio->Preperences...->Experimental uncheck: Only sync the active variant.

我研究了文档.此功能可以提高编译速度.如果找到修复方法,我仍要继续选中仅同步活动的变体".

I have studied the documentation. This feature can improve the compilation speed. If I find the fix method, I still want to continue to check "Only sync the active variant".

第二次更新(20190518):

Second Update(20190518):

浏览一些文档没有找到解决方案.

Looking through some documents did not find a solution.

但可能会发现一些重复出现的情况供您参考.

But probably find some recurring conditions for your reference.

此问题的过程是主动启动Gradle的项目同步操作.例如,单击时将在图中出现两个位置.如果有问题,则需要取消选中仅同步活动的变体".

The process of this problem is to take the initiative to start Gradle's project synchronization operation. For example, two places in the figure will occur when clicked. If there is a problem, you need to uncheck "Only sync the active variant."

但是,在成功编译和安装后,选中仅同步活动的变体.",即使更改了build.gradle文件,也不需要再次同步最前面的通知,因此不会再次出现此问题.单击立即同步",直接使用运行应用程序"或调试应用程序",Android-studio将自动执行同步,然后编译并运行,并且不会再次发生此问题.

However, after successfully compiling and installing, check "Only sync the active variant.", this problem will not appear again, even if you change the build.gradle file, the top notification that needs to be synchronized again, do not click "Sync now", directly use run 'app' or debug 'app', Android-studio will automatically perform the synchronization and then compile and run, and this problem will not occur again.

起初,我认为更改build.gradle的代码可以纠正此问题.现在,我觉得Android-studio或gradle-plugin在执行项目同步时遇到一些问题.我希望后续版本可以解决此问题.

At first I thought that changing the code of build.gradle can correct this problem. Now I feel like Android-studio or gradle-plugin has some problems in executing project sync. I hope that the subsequent version will solve this problem.

第三次更新(20190821):

Third Update(20190821):

Android-studio 3.5.0/gradle构建插件3.5.0/gradle 5.4.1

Android-studio 3.5.0/ gradle build plugin 3.5.0/ gradle 5.4.1

当前最新的稳定版本已解决此问题.

Current latest stable version fixed this issue.

启用仅同步活动的变体"是可以的.

Enable "Only sync the active variant" is ok.

推荐答案

单击Android Studio->性能->实验性,则必须取消选中-仅同步活动的变体.

Click Android Studio->Preperences->Experimental then you have to uncheck - Only sync the active variant.

这篇关于Android-studio 3.4.0-3.4.2 Gradle错误:未为属性"manifestOutputDirectory"指定值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆