gradle

com.android.tools.r8.errors.a: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O

时光怂恿深爱的人放手 提交于 2021-02-07 19:00:21
问题 I'm developping android native applications and i have for them a library project containing all the common tools for these applications. I was importing my library with jfrog artifactory and it was working well ; now i want to use git and sub-module to have my library inside my project as a module to be able to work both on app and library at the same time. But now (in my projects containing two modules (app and library)), the build fails... I've tried a lot of things before to ask help here

How can I declare list in gradle.properties file?

六眼飞鱼酱① 提交于 2021-02-07 14:51:19
问题 When I try to write something like this in the gradle.properties file: defaultTasks=['deploy'] I get next message: BUILD FAILED FAILURE: Build failed with an exception. * What went wrong: Cannot cast object '['deploy']' with class 'java.lang.String' to class 'java.util.List' 回答1: I suppose, it's not possible to make it this way, because this is a plain java properties and the property value is a String by default. But you can add some initialization logic to your script, to read custom

How can I declare list in gradle.properties file?

谁说胖子不能爱 提交于 2021-02-07 14:50:34
问题 When I try to write something like this in the gradle.properties file: defaultTasks=['deploy'] I get next message: BUILD FAILED FAILURE: Build failed with an exception. * What went wrong: Cannot cast object '['deploy']' with class 'java.lang.String' to class 'java.util.List' 回答1: I suppose, it's not possible to make it this way, because this is a plain java properties and the property value is a String by default. But you can add some initialization logic to your script, to read custom

“Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.” -REACT-NATIVE

故事扮演 提交于 2021-02-07 13:30:21
问题 I am facing this error when I am trying to run a react-native application react-native run-android , I am unable to install the application. I am trying to build a camera application. My current react-native version:0.62.0, React-cli version : 2.0.1. Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command

Android Studio create a build variant / type excluding jniLibs?

倖福魔咒の 提交于 2021-02-07 13:30:19
问题 I have an Android application that uses a native JNI library. I put it into app/src/main/jniLibs/armeabi-v7a without any gradle configuration and Android studio happily bundles it into the APK. I have a requirement where all native libraries cannot be bundled with a certain distribution. Is it possible to create a build variant or build type that simply excludes all native libraries (maybe even by name .so ). The fact that the native library is missing in this distribution doesn't matter

“Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.” -REACT-NATIVE

不问归期 提交于 2021-02-07 13:29:10
问题 I am facing this error when I am trying to run a react-native application react-native run-android , I am unable to install the application. I am trying to build a camera application. My current react-native version:0.62.0, React-cli version : 2.0.1. Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command

Android Studio create a build variant / type excluding jniLibs?

末鹿安然 提交于 2021-02-07 13:28:23
问题 I have an Android application that uses a native JNI library. I put it into app/src/main/jniLibs/armeabi-v7a without any gradle configuration and Android studio happily bundles it into the APK. I have a requirement where all native libraries cannot be bundled with a certain distribution. Is it possible to create a build variant or build type that simply excludes all native libraries (maybe even by name .so ). The fact that the native library is missing in this distribution doesn't matter

Gradle: how to include dependencies from repositories to output aar file [duplicate]

青春壹個敷衍的年華 提交于 2021-02-07 12:55:25
问题 This question already has answers here : How to include JAR dependency into an AAR library (4 answers) Closed 3 years ago . I am trying to build an arr package in Android Studio. This package contains dependecies for Zendesk: allprojects { repositories { maven { url 'https://zendesk.artifactoryonline.com/zendesk/repo' } } } compile (group: 'com.zendesk', name: 'sdk', version: '1.7.0.1') { transitive = true } compile (group: 'com.zopim.android', name: 'sdk', version: '1.3.1.1') { transitive =

Android Studio not using Gradle jvmArgs when running tests?

陌路散爱 提交于 2021-02-07 12:32:28
问题 I have an Android library with a JUnit test that only passes if it is run with the -noverify flag passed to the JVM (I believe because of this). The test will pass if it is run from the command line as long as I tell Gradle to pass that flag by adding this to my build.gradle file: android { testOptions.unitTests { all { jvmArgs '-noverify' } } } I thought that Android Studio would pick that up and use that flag to run the tests as well, but that does not seem to be the case. In order to get

Kotlin JaCoCo, no coverage -> IllegalClassFormatException … Please supply original non-instrumented classes

倖福魔咒の 提交于 2021-02-07 12:19:43
问题 kotlin verion: 1.3.61 Android Gradle Plugin: 3.5.3 JaCoCo Version: 0.8.4.201905082037 (default android gradle version) project: https://github.com/goldy1992/Mp3Player/tree/feature/issue-112/migrate-to-kotlin I have a multi module gradle project with: 2 flavours: full, automation 2 build types: release, debug I'm in the process of migrating everything to kotlin. Module structure commons [android library] (works as expected with test coverage) client-test-support (used for test implementations