gradle

Error:Could not initialize class javax.crypto.JceSecurity [closed]

青春壹個敷衍的年華 提交于 2021-01-27 07:33:22
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Improve this question Im getting this error Error:Could not initialize class javax.crypto.JceSecurity in Android Studio 0.9.3, any solutions? 回答1: Ensure that the following JAR files does exist in the your JRE: JRE/lib/security/local_policy.jar JRE/lib/security/US_export_policy.jar 来源: https:/

Error:Could not initialize class javax.crypto.JceSecurity [closed]

不问归期 提交于 2021-01-27 07:33:03
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Improve this question Im getting this error Error:Could not initialize class javax.crypto.JceSecurity in Android Studio 0.9.3, any solutions? 回答1: Ensure that the following JAR files does exist in the your JRE: JRE/lib/security/local_policy.jar JRE/lib/security/US_export_policy.jar 来源: https:/

Build Java module runtime image for other OS

╄→尐↘猪︶ㄣ 提交于 2021-01-27 07:28:50
问题 I have rewritten my little Java 8 project from simple jar to single module in Java 11. In past I was building jar with Gradle and it was compatible with Windows and Linux. Now I configured Gradle to build my module and create custom runtime image and it is working but only on Linux. My custom runtime image contains only Linux libraries. Is there possibility to build image for Windows on Linux? I know I could open my project on Windows and create there image but I would like to keep my project

Build Java module runtime image for other OS

≯℡__Kan透↙ 提交于 2021-01-27 07:28:48
问题 I have rewritten my little Java 8 project from simple jar to single module in Java 11. In past I was building jar with Gradle and it was compatible with Windows and Linux. Now I configured Gradle to build my module and create custom runtime image and it is working but only on Linux. My custom runtime image contains only Linux libraries. Is there possibility to build image for Windows on Linux? I know I could open my project on Windows and create there image but I would like to keep my project

Gradle fileTree exclude all except certain directories

血红的双手。 提交于 2021-01-27 07:22:39
问题 I am using the fileTree utility to get a list of files but need to exclude all directories except a select few from the list. My directory structure: node_modules/ react-native/ react/ third-party-package/ another-package/ I need to exclude all directories except the ones named react-native and react. Currently I am excluding all node_modules, but this is not what I want... fileTree(dir: '.', excludes: [ 'node_modules/**'] ) How would I do this with the fileTree? 回答1: You can use a closure

Using a gradle plugin in a project where its dependency also use the same plugin

谁说我不能喝 提交于 2021-01-27 06:24:40
问题 I am new to gradle (leaving from maven). Now I have a problem. I have a gradle build where I want to use the com.bmuschko.nexus plugin. But my project depends on another project where I also want to use the com.bmuschko.nexus plugin. So when I build I get an Exception: Plugin 'com.bmuschko.nexus' is already on the script classpath. Plugins on the script classpath cannot be applied in the plugins {} block. Add "apply plugin: 'com.bmuschko.nexus'" to the body of the script to use the plugin.

Using a gradle plugin in a project where its dependency also use the same plugin

99封情书 提交于 2021-01-27 06:24:00
问题 I am new to gradle (leaving from maven). Now I have a problem. I have a gradle build where I want to use the com.bmuschko.nexus plugin. But my project depends on another project where I also want to use the com.bmuschko.nexus plugin. So when I build I get an Exception: Plugin 'com.bmuschko.nexus' is already on the script classpath. Plugins on the script classpath cannot be applied in the plugins {} block. Add "apply plugin: 'com.bmuschko.nexus'" to the body of the script to use the plugin.

Executing a task after a signed bundle is created

人走茶凉 提交于 2021-01-27 06:00:52
问题 I would like to take the generated signed bundle from Android Studio and generate all apks and install them on every device that is connected to my computer at that time. I know how to generate the apks and install them but I don't know how to run that script after a signed bundle is created. I only want this to run when I use Build -> Generate signed bundle/apk and choose a bundle and the production release flavor. Can I do that with gradle? Thanks. 回答1: Android tasks are typically created

Automatically download sources in Gradle project

我只是一个虾纸丫 提交于 2021-01-27 05:50:31
问题 In Maven projects, there is an option to automatically download sources (and javadoc) for all libraries. For Gradle project I found no option, just to open a class and click "Search in internet". This is very annoying if you have a lot of libraries. Is there any way to automatically attach sources from the internet (maven repo)? 回答1: I know that this is an old topic, but in case someone reaches here and does not want to gradle idea, you can also use a plugin and then it will resolve sources

How to fix initialization error for DefaultKotlinSourceSetKt?

谁都会走 提交于 2021-01-27 05:36:28
问题 With project build (or simple Gradle sync), I have the following error: Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSetKt This error shows after change gradle wrapper version from 4.10 to 6.2.2 (because min gradle wrapper version required 5.6.4, but with 5.6.4 Apollo has error "Access denied" for build folder) Sorry for mistakes, my English is very bad( My build.gradle: apply plugin: 'com.android