android-gradle-3.0

Avoid 'Variant Selection Conflicts' warning when using android test plugin without release variant

折月煮酒 提交于 2021-01-27 11:29:30
问题 What I want to do & the problem I updated my Android Studio and Android Gradle Plugin to 3.0.1 and my Gradle Wrapper to 4.1 and can build & deploy my Android Gradle project in release variant on a device via IDE. However, the following 'Gradle Sync' warning messages are shown: Warning:Module 'library' has variant 'release' selected, but the modules ['integration-test'] depend on variant 'debug' The problem here is, that there is no 'release' variant for the integration-test module which uses

Active build variant does not have a test artifact

↘锁芯ラ 提交于 2020-12-29 11:49:09
问题 I have created a new build type called 'bitrise' based on the 'debug' build variant. The instrumented androidTests build and run fine when using the 'debug' build variant however when I switch over to my new 'bitrise' build variant I get the following errors: Process finished with exit code 1 Class not found: "com.mycompany.app.ui.race.RaceFragmentUiTest" And this warning when I select "Edit Configurations..." -> "Android Instrumented Tests" Versions 'com.android.tools.build:gradle:3.5.2'

Active build variant does not have a test artifact

烂漫一生 提交于 2020-12-29 11:47:29
问题 I have created a new build type called 'bitrise' based on the 'debug' build variant. The instrumented androidTests build and run fine when using the 'debug' build variant however when I switch over to my new 'bitrise' build variant I get the following errors: Process finished with exit code 1 Class not found: "com.mycompany.app.ui.race.RaceFragmentUiTest" And this warning when I select "Edit Configurations..." -> "Android Instrumented Tests" Versions 'com.android.tools.build:gradle:3.5.2'

Active build variant does not have a test artifact

こ雲淡風輕ζ 提交于 2020-12-29 11:45:23
问题 I have created a new build type called 'bitrise' based on the 'debug' build variant. The instrumented androidTests build and run fine when using the 'debug' build variant however when I switch over to my new 'bitrise' build variant I get the following errors: Process finished with exit code 1 Class not found: "com.mycompany.app.ui.race.RaceFragmentUiTest" And this warning when I select "Edit Configurations..." -> "Android Instrumented Tests" Versions 'com.android.tools.build:gradle:3.5.2'

Gradle Error when try to add dependency for Zxing scanner

﹥>﹥吖頭↗ 提交于 2020-01-05 09:35:57
问题 I tried to add a dependency "me.dm7.barcodescanner:zxing:1.9.8" for the barcode scanner functionality. It populates Gradle error as given in image click 回答1: This happens because this library uses the old version com.android.support libs. Try do this: implementation ("me.dm7.barcodescanner:zxing:1.9.8") { exclude group: "com.android.support" } 来源: https://stackoverflow.com/questions/53002571/gradle-error-when-try-to-add-dependency-for-zxing-scanner

Failed to transform file '45907c80e09917e1b776adf038505958' to match attributes {artifactType=jar} using transform AarTransform

江枫思渺然 提交于 2019-12-29 06:17:50
问题 I am using Android 3.0 canary 4 and making an app. Everything was working fine until yesterday, but today when i opened the project, it gave me an error F:\test projects\SellIT\app\build.gradle Error:Failed to resolve: Failed to transform file '45907c80e09917e1b776adf038505958' to match attributes {artifactType=jar} using transform AarTransform <a href="openFile:F:/test projects/SellIT/app/build.gradle">Open File</a> Error:Failed to resolve: Failed to transform file

New error after update to gradle-tool to 3.1.0-beta3 or 3.2.0-alpha03

五迷三道 提交于 2019-12-21 11:27:45
问题 Just a normal project with "prod" and "mock" flavors in app/build.gradle: sourceSets { main.java.srcDirs += "blabla bla" test.java.srcDirs += "blabla bla" androidTest.java.srcDirs += "blabla bla" prodDebug.java.srcDirs += "blabla bla" mockDebug.java.srcDirs += "blabla bla" prod.java.srcDirs += "blabla bla" testProd.java.srcDirs += "blabla bla" androidTestProd.java.srcDirs += "blabla bla" mock.java.srcDirs += "blabla bla" testMock.java.srcDirs += "blabla bla" androidTestMock.java.srcDirs +=

New error after update to gradle-tool to 3.1.0-beta3 or 3.2.0-alpha03

徘徊边缘 提交于 2019-12-21 11:27:42
问题 Just a normal project with "prod" and "mock" flavors in app/build.gradle: sourceSets { main.java.srcDirs += "blabla bla" test.java.srcDirs += "blabla bla" androidTest.java.srcDirs += "blabla bla" prodDebug.java.srcDirs += "blabla bla" mockDebug.java.srcDirs += "blabla bla" prod.java.srcDirs += "blabla bla" testProd.java.srcDirs += "blabla bla" androidTestProd.java.srcDirs += "blabla bla" mock.java.srcDirs += "blabla bla" testMock.java.srcDirs += "blabla bla" androidTestMock.java.srcDirs +=