我想做什么和问题
我将Android Studio和Android Gradle Plugin更新为3.0.0,将Gradle Wrapper更新为4.2.1,并希望通过IDE在设备上构建和部署我的Android Gradle项目。
项目详情(简化)
该项目包括:
settings.gradle
include :library
include :app
include :integration-test
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>
上次它的工作原理是: - Build Tools 2.2.3,Gradle 3.4.1和Android Studio 2.3.3
题
有没有人使用com.android.test插件(使用AndroidManifest文件)使用Android Gradle Plugin 3.0.0运行(集成 - )测试模块?如果是这样,你会提供一个我可以用来修复我的设置的样本吗?
转到Android Studio>首选项>即时运行>取消选中“启用即时运行...”
由Change-Id修复:I443aa157de5f9f49441e61f26f52d0176e44502d
修正了将在Android Studio 3.1 canary 6 +中
如果任何问题仍然存在,请在Google issue tracker报告,他们将重新开放审查。