dev-resources.site
for different kinds of informations.
Gradle upgrade
Published at
8/2/2024
Categories
gradle
upgrade
android
agp
Author
sidcodeme
Main Article
Author
9 person written this
sidcodeme
open
1- android/gradle/warpper/gradle-warpapper.peroperies(2024/08/02 or 02/08/2024)
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
2- android/build.gradle (AGP Upgrade : *add buildscript{ })
buildscript {
// λͺ©μ : buildscript λΈλ‘μ λΉλ μ€ν¬λ¦½νΈ μ체μ νμν μμ‘΄μ± λ° νλ¬κ·ΈμΈμ μ μν©λλ€.
// Purpose: The buildscript block defines the dependencies and plugins required for the build script itself.
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.1' // μ΅μ λ²μ μΌλ‘ μ
λ°μ΄νΈ
}
}
allprojects {
// λͺ©μ : allprojects λΈλ‘μ λ£¨νΈ νλ‘μ νΈμ λͺ¨λ νμ νλ‘μ νΈμ 곡ν΅μ μΌλ‘ μ μ©ν μ€μ μ μ μν©
// Purpose: The allprojects block defines settings that apply to the root project and all subprojects.
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
project.evaluationDependsOn(":app")
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
3- android/settings.gradle ( id "com.android.application" version "8.5.1" apply false)
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.5.1" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}
4- rebuild Gradle
$ cd /mypackage/android
$ ./gradlew clean build
ββ―
> Task :app:stripDebugDebugSymbols
Unable to strip the following libraries, packaging them as they are: libVkLayer_khronos_validation.so, libflutter.so.
> Task :app:stripProfileDebugSymbols
Unable to strip the following libraries, packaging them as they are: libapp.so, libflutter.so, libvmservice_snapshot.so.
> Task :app:stripReleaseDebugSymbols
Unable to strip the following libraries, packaging them as they are: libapp.so, libflutter.so.
> Task :app:lintReportDebug
Wrote HTML report to file:///Users/sidcode/Developer/flutter_workspace/jiyulsadventure/build/app/reports/lint-results-debug.html
> Task :app:minifyReleaseWithR8
Supplied proguard configuration does not exist: /Users/sidcode/Developer/flutter_workspace/jiyulsadventure/android/app/proguard-rules.pro
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 37s
159 actionable tasks: 146 executed, 13 up-to-date
gradle Article's
30 articles in total
Understanding (a bit of) the Gradle Kotlin DSL
read article
Zero Config Spring Batch: Just Write Business Logic
read article
JeKa: The Simplest Way to Create Uber and Shade Jars
read article
JeKa: The Simplest Way to Publish on Maven Central
read article
Gradle extensions part 2: Now with shenanigans
read article
Wednesday Links - Edition 2024-11-27
read article
A brand new Java scaffolding has been born today for Make Java Great Again!
read article
Wednesday Links - Edition 2024-10-16
read article
Gradle 8.11: Faster Configuration Cache and Improved Configuration Time
read article
react-native duplicate class problem
read article
Breaking the build π : Demystifying Gradle
read article
Wednesday Links - Edition 2024-09-11
read article
One click dependencies fix
read article
ACAB: Fire the (code style) cop in your head
read article
Telltale: Automating Experimentation in Gradle Builds
read article
Minecraft Modpack Development Update: Beta Test and Musical Additions
read article
Gradle upgrade
currently reading
Announcing Dependency Analysis Gradle Plugin 2.0.0!
read article
Wednesday Links - Edition 2024-07-24
read article
Resource observability case study: jemalloc in Android builds
read article
How store signing keystore.
read article
Simple way to store secrets in Android Project.
read article
Developing a Custom Gradle Plugin for Formatting and Static Analysis
read article
Gradle Commands Cheat Sheet
read article
Wednesday Links - Edition 2024-04-24
read article
Gradle DSL: Configurando JaCoco
read article
Unearthing the Quirk: Dealing with File Access Issues that arise from Resource Optimization in Android Applications
read article
π Cherry-Picked Nx v18.2 Updates
read article
Making Your Android Project Modular With Convention Plugins
read article
Kradle 9.0: Revolutionizing the JVM Ecosystem with Kotlin at its Core!
read article
Featured ones: