Logo

dev-resources.site

for different kinds of informations.

Gradle upgrade

Published at
8/2/2024
Categories
gradle
upgrade
android
agp
Author
sidcodeme
Categories
4 categories in total
gradle
open
upgrade
open
android
open
agp
open
Author
9 person written this
sidcodeme
open
Gradle upgrade

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
Enter fullscreen mode Exit fullscreen mode

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
}

Enter fullscreen mode Exit fullscreen mode

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
}
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode
gradle Article's
30 articles in total
Favicon
Understanding (a bit of) the Gradle Kotlin DSL
Favicon
Zero Config Spring Batch: Just Write Business Logic
Favicon
JeKa: The Simplest Way to Create Uber and Shade Jars
Favicon
JeKa: The Simplest Way to Publish on Maven Central
Favicon
Gradle extensions part 2: Now with shenanigans
Favicon
Wednesday Links - Edition 2024-11-27
Favicon
A brand new Java scaffolding has been born today for Make Java Great Again!
Favicon
Wednesday Links - Edition 2024-10-16
Favicon
Gradle 8.11: Faster Configuration Cache and Improved Configuration Time
Favicon
react-native duplicate class problem
Favicon
Breaking the build 😝 : Demystifying Gradle
Favicon
Wednesday Links - Edition 2024-09-11
Favicon
One click dependencies fix
Favicon
ACAB: Fire the (code style) cop in your head
Favicon
Telltale: Automating Experimentation in Gradle Builds
Favicon
Minecraft Modpack Development Update: Beta Test and Musical Additions
Favicon
Gradle upgrade
Favicon
Announcing Dependency Analysis Gradle Plugin 2.0.0!
Favicon
Wednesday Links - Edition 2024-07-24
Favicon
Resource observability case study: jemalloc in Android builds
Favicon
How store signing keystore.
Favicon
Simple way to store secrets in Android Project.
Favicon
Developing a Custom Gradle Plugin for Formatting and Static Analysis
Favicon
Gradle Commands Cheat Sheet
Favicon
Wednesday Links - Edition 2024-04-24
Favicon
Gradle DSL: Configurando JaCoco
Favicon
Unearthing the Quirk: Dealing with File Access Issues that arise from Resource Optimization in Android Applications
Favicon
πŸ’ Cherry-Picked Nx v18.2 Updates
Favicon
Making Your Android Project Modular With Convention Plugins
Favicon
Kradle 9.0: Revolutionizing the JVM Ecosystem with Kotlin at its Core!

Featured ones: