android-gradle-plugin

How to randomize ProGuard dictionaries on each build?

倾然丶 夕夏残阳落幕 提交于 2021-02-19 02:24:07
问题 I found an article which introduces the concept of randomizing the dictionary entries instead of using the standard "a, b, c, ..." for class names and variables when obfuscating. He explains that tasks can be run in gradle on build to generate a randomized text file which can replace the one provided by default: tasks.whenTaskAdded { currentTask -> //Android Gradle plugin may change this task name in the future def prefix = 'transformClassesAndResourcesWithProguardFor' if (currentTask.name

Gradle buildSrc and buildscript

谁说我不能喝 提交于 2021-02-18 20:56:13
问题 We have a Gradle build that includes a buildSrc with some custom plugins. Those plugins apply yet other plugins. For example, our plugin applies com.android.tools.build:gradle . For annotation processing that library needs to be on Gradle's classpath during compilation. So, putting this in our main build.gradle works: buildscript { repositories { google() } dependencies { classpath "com.android.tools.build:gradle:$gToolsVersion" } } However, that means that for a user to apply this plugin

Android Studio: No build variant found error

不羁的心 提交于 2021-02-18 20:17:55
问题 i am new to android development, i started developing from scratch on a project i bought online, following the documentation, i encountered a error saying No variants found for 'app'. Check build files to ensure at least one variant exists. Here is the build.gradle code apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.1" defaultConfig { applicationId "com.app-10.app" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0"

Android Studio: No build variant found error

天大地大妈咪最大 提交于 2021-02-18 20:17:14
问题 i am new to android development, i started developing from scratch on a project i bought online, following the documentation, i encountered a error saying No variants found for 'app'. Check build files to ensure at least one variant exists. Here is the build.gradle code apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.1" defaultConfig { applicationId "com.app-10.app" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0"

Android Studio: No build variant found error

99封情书 提交于 2021-02-18 20:16:23
问题 i am new to android development, i started developing from scratch on a project i bought online, following the documentation, i encountered a error saying No variants found for 'app'. Check build files to ensure at least one variant exists. Here is the build.gradle code apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.1" defaultConfig { applicationId "com.app-10.app" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0"

Android Studio 3.1 : Could not find org.jetbrains.trove4j:trove4j:20160824

自古美人都是妖i 提交于 2021-02-18 19:55:09
问题 Yesterday, I updated Android Studio to 3.1 and I'm getting this error : Could not find org.jetbrains.trove4j:trove4j:20160824. Searched in the following locations: https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom https://dl.google.com/dl/android/maven2

Android Studio 3.1 : Could not find org.jetbrains.trove4j:trove4j:20160824

青春壹個敷衍的年華 提交于 2021-02-18 19:54:40
问题 Yesterday, I updated Android Studio to 3.1 and I'm getting this error : Could not find org.jetbrains.trove4j:trove4j:20160824. Searched in the following locations: https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom https://dl.google.com/dl/android/maven2

Android Studio 3.1 : Could not find org.jetbrains.trove4j:trove4j:20160824

北战南征 提交于 2021-02-18 19:54:06
问题 Yesterday, I updated Android Studio to 3.1 and I'm getting this error : Could not find org.jetbrains.trove4j:trove4j:20160824. Searched in the following locations: https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom https://dl.google.com/dl/android/maven2

How to disable Dexguard?

為{幸葍}努か 提交于 2021-02-18 17:59:48
问题 I went through the documentation looking for the way how to disable dexguard when running gradle but keeping plugin: 'dexguard'. I tried to modify proguardFile getDefaultDexGuardFile('dexguard-debug.pro') to do nothing but unfortunately no luck. I need to set no dexguard functionality for my functional testing suit MonkeyTalk which cannot instrument the apk now. How to turn the dexguard functionality off? 回答1: Update from zatziky's answer for current Android Gradle Plugin (v1.0+) and Dexguard

How to disable Dexguard?

人走茶凉 提交于 2021-02-18 17:59:28
问题 I went through the documentation looking for the way how to disable dexguard when running gradle but keeping plugin: 'dexguard'. I tried to modify proguardFile getDefaultDexGuardFile('dexguard-debug.pro') to do nothing but unfortunately no luck. I need to set no dexguard functionality for my functional testing suit MonkeyTalk which cannot instrument the apk now. How to turn the dexguard functionality off? 回答1: Update from zatziky's answer for current Android Gradle Plugin (v1.0+) and Dexguard