gradle

Android Library: Release .aar getting classes.jar empty when using proguard

妖精的绣舞 提交于 2021-02-07 02:33:17
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'

Android Library: Release .aar getting classes.jar empty when using proguard

♀尐吖头ヾ 提交于 2021-02-07 02:33:16
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'

Android Library: Release .aar getting classes.jar empty when using proguard

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-07 02:32:48
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'

How to use Gradle to generate JavaDoc in Android Studio?

霸气de小男生 提交于 2021-02-07 02:02:58
问题 I can not find any documentation on how to configure my Gradle file to create the JavaDoc for my project. I already tried some snippets from SO and blog articles but none of them seem to work or they do not provide context. This is my Gradle file. What do I need to do to add a task to generate JavaDoc? import org.apache.tools.ant.taskdefs.condition.Os apply plugin: 'com.android.library' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { minSdkVersion 15 targetSdkVersion

Why does assembleDebug takes much longer then project build and how to optimize it?

青春壹個敷衍的年華 提交于 2021-02-06 19:31:36
问题 I've been dealing with gradle build time in Android Studio recently. I've managed to decrease the build time from about 3 mins to 10 seconds by removing some dependencies, but here's the thing: When I rebuild project it takes about 10 seconds: 15:13:43 Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources] 15:13:54 Gradle build finished in 11s 596ms However when I launch the app, it takes a lot

Why does assembleDebug takes much longer then project build and how to optimize it?

我的未来我决定 提交于 2021-02-06 19:31:06
问题 I've been dealing with gradle build time in Android Studio recently. I've managed to decrease the build time from about 3 mins to 10 seconds by removing some dependencies, but here's the thing: When I rebuild project it takes about 10 seconds: 15:13:43 Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources] 15:13:54 Gradle build finished in 11s 596ms However when I launch the app, it takes a lot

How can I disable IntelliJ using the Gradle run task to run my code?

∥☆過路亽.° 提交于 2021-02-06 15:13:41
问题 After updating IDEA, every time I debug a class in a new project only , it seems to be using the Gradle run task to run my code (despite using an "Application" run configuration, not "Gradle"!): 6:40:27 AM: Executing task 'Test.main()'... Connected to the target VM, address: '127.0.0.1:49580', transport: 'socket' > Task :compileJava UP-TO-DATE > Task :processResources NO-SOURCE > Task :classes UP-TO-DATE Connected to the VM started by ':Test.main()' (localhost:49597). Open the debugger

How can I disable IntelliJ using the Gradle run task to run my code?

随声附和 提交于 2021-02-06 15:13:19
问题 After updating IDEA, every time I debug a class in a new project only , it seems to be using the Gradle run task to run my code (despite using an "Application" run configuration, not "Gradle"!): 6:40:27 AM: Executing task 'Test.main()'... Connected to the target VM, address: '127.0.0.1:49580', transport: 'socket' > Task :compileJava UP-TO-DATE > Task :processResources NO-SOURCE > Task :classes UP-TO-DATE Connected to the VM started by ':Test.main()' (localhost:49597). Open the debugger

Spring Boot JSF packaging as a JAR

谁说我不能喝 提交于 2021-02-06 13:55:12
问题 I am trying to create a spring boot app with jsf and gradle. So far, during development everything was fine. When I wanted to run my App I just typed gradle bootRun, the app started and I was able to access it under 'localhost'. Now I am at a point of time, where I want to deploy the app, therefore I run the command 'gradle clean distTar' which creates the tar file to deploy. After running the generated script and accessing my app via Browser I just get an 404 with the message. index.xhtml

How to debug android library module in Android Studio?

ε祈祈猫儿з 提交于 2021-02-06 10:43:05
问题 I have an Android Studio project which contains a library module, which is added as another gradle project to it. I would like to debug the library code and set breakpoints on it. What gradle settings should I use, if I want to debug a library module while running the app on emulator or real device ? Update 1 this is the settings.gradle file : include ':app' include':my-library' 回答1: After a few days struggling I found the right configuration for being able to debug the library module : 1-