简体   繁体   English

变体调试没有类型为INSTANT_RUN_MERGED_MANIFESTS的输出

[英]Variant debug has no output with type INSTANT_RUN_MERGED_MANIFESTS

What I want to do & the problem 我想做什么和问题

I updated my Android Studio and Android Gradle Plugin to 3.0.0 and my Gradle Wrapper to 4.2.1 and want to build & deploy my Android Gradle project on a device via IDE. 我将Android Studio和Android Gradle Plugin更新为3.0.0,将Gradle Wrapper更新为4.2.1,并希望通过IDE在设备上构建和部署我的Android Gradle项目。

  • Building succeeds 建设成功
  • When I try to deploy my :app module to a connected device, I receive the error: 当我尝试将我的:app模块部署到连接的设备时,我收到错误:

    Error:A problem occurred configuring project ':integration-test'. 错误:配置项目':integration-test'时出现问题。 Variant 'debug' has no output with type 'INSTANT_RUN_MERGED_MANIFESTS' 变体'debug'没有类型'INSTANT_RUN_MERGED_MANIFESTS'的输出

Details about the project (simplified) 项目详情(简化)

The project consists of: 该项目包括:

  • a :library module a :库模块
  • an :app module which builds the app's apk and uses the :library module an :app模块 ,用于构建应用程序的apk并使用:library模块
  • an :integration-test module which: an :集成测试模块
    • uses the "com.android.test" plugin 使用“com.android.test”插件
    • dependents on the :app module via targetProjectPath ':app' & targetVariant 'debug' 依赖于:app模块通过targetProjectPath':app'和targetVariant'debug'
    • and contains instrumented tests on the :app functions 并包含:app功能的检测测试
    • only contains a 'main' folder (the test plugin does not support others) 只包含一个'main'文件夹(测试插件不支持其他文件夹)

settings.gradle settings.gradle

include :library
include :app
include :integration-test

AndroidManifest.xml AndroidManifest.xml中

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.domain.integration_test">

<!-- from https://stackoverflow.com/questions/45631959/how-to-place-android-instrumentation-test-files-outside-of-project-directory -->
<!-- Specify runner and target application package -->
<instrumentation
    android:name="android.support.test.runner.AndroidJUnitRunner"
    android:functionalTest="false"
    android:handleProfiling="false"
    android:label="Tests for com.domain.pro.client"
    android:targetPackage="com.domain.pro.client"/>

<application>
    <uses-library android:name="android.test.runner" />
</application>

Last time it worked was with: - Build Tools 2.2.3, Gradle 3.4.1 and Android Studio 2.3.3 上次它的工作原理是: - Build Tools 2.2.3,Gradle 3.4.1和Android Studio 2.3.3

Question

Did anyone get a (integration-)test module using the com.android.test plugin containing (with an AndroidManifest file) to run with Android Gradle Plugin 3.0.0 ? 有没有人使用com.android.test插件 (使用AndroidManifest文件)使用Android Gradle Plugin 3.0.0运行(集成 - )测试模块 If so, would you provide a sample which I can use to fix my setup? 如果是这样,你会提供一个我可以用来修复我的设置的样本吗?

转到Android Studio>首选项>即时运行>取消选中“启用即时运行...”

Fixed by Change-Id: I443aa157de5f9f49441e61f26f52d0176e44502d 由Change-Id修复:I443aa157de5f9f49441e61f26f52d0176e44502d

Fixed will be in Android Studio 3.1 canary 6 + 修正了将在Android Studio 3.1 canary 6 +中

If any issue persists, please report at Google issue tracker they will re-open to examine. 如果问题仍然存在,请在Google问题跟踪器上报告,他们会重新审核。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在调试版本中使用库运行应用程序? - How to run application with library in debug build variant? 尝试删除 app/build/intermediates/manifests/full/debug/output.json 或清理您的构建目录 - Try to remove app/build/intermediates/manifests/full/debug/output.json or clean your build directory Android Studio 2.3无法使用即时运行:使用ClassNotFoundException调试apk崩溃 - Android Studio 2.3 not working with instant run: debug apk crash with ClassNotFoundException Android Gradle Plugin 3.1在运行即时运行时在合并清单中给出错误 - Android Gradle Plugin 3.1 giving error in Merged manifest while running instant run 错误:您当前选择的变体(未知输出)的 apk 未签名。 请为此变体指定签名配置(调试) - Error: The apk for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug) 如何结合构建类型和风格来获得构建变体调试<Flavor> - How combine build type and flavor to get a build variant debug<Flavor> 哪里放风味清单,让它们与主AndroidManifest文件合并 - Where to put flavor manifests to get them merged with main AndroidManifest file 错误:调试与Android API级别15间接相关,但变体“调试”的minSdkVersion为API级别10 - ERROR: Debug has an indirect dependency on Android API level 15, but minSdkVersion for variant 'debug' is API level 10 调试与Android API级别X间接相关,但变体“调试”的minSdkVersion为API级别Y - Debug has an indirect dependency on Android API level X, but minSdkVersion for variant 'debug' is API level Y 调试构建变体失败 - debug build variant failing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM