android studio 升级到 2024.2.2

master
hwf452 11 months ago
parent e5773f5e18
commit 94ee713e10

@ -1,6 +1,11 @@
//plugins {
// id 'com.android.application'
// id 'org.jetbrains.kotlin.android'
//}
plugins { plugins {
id 'com.android.application' alias(libs.plugins.android.application)
id 'org.jetbrains.kotlin.android' alias(libs.plugins.kotlin.android)
} }
android { android {
@ -61,8 +66,8 @@ android {
} }
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_17 sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_21
} }
} }
@ -72,6 +77,18 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
//implementation 'com.zhy:autolayout:1.4.5'// //implementation 'com.zhy:autolayout:1.4.5'//
//implementation 'com.yolanda.nohttp:nohttp:1.0.5'// //implementation 'com.yolanda.nohttp:nohttp:1.0.5'//
implementation libs.androidx.core.ktx
implementation libs.androidx.appcompat
implementation libs.material
implementation libs.androidx.activity
implementation libs.androidx.constraintlayout
testImplementation libs.junit
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.espresso.core
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
@ -91,10 +108,15 @@ dependencies {
implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0' // implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // implementation 'androidx.appcompat:appcompat:1.6.1'
// implementation 'com.google.android.material:material:1.8.0'
// implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
// implementation 'androidx.activity:activity:1.8.0'
// //
// //
implementation project(':videocompressor') implementation project(':videocompressor')
@ -131,7 +153,7 @@ dependencies {
implementation 'androidx.annotation:annotation:1.6.0' implementation 'androidx.annotation:annotation:1.6.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
implementation 'androidx.activity:activity:1.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
// //
implementation 'cn.hutool:hutool-all:5.8.5' implementation 'cn.hutool:hutool-all:5.8.5'
@ -163,9 +185,9 @@ dependencies {
implementation "androidx.camera:camera-extensions:${camerax_version}" implementation "androidx.camera:camera-extensions:${camerax_version}"
testImplementation 'junit:junit:4.13.2' // testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' // androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' // androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
configurations { configurations {
all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.google.code.gson'
} }

@ -11,5 +11,5 @@ android {
} }
dependencies { dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0' implementation libs.androidx.appcompat.v170
} }

@ -3,7 +3,7 @@ package com.zhy.autolayout;
import android.content.Context; import android.content.Context;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.View; import android.view.View;
;import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
/** /**
* Created by zhy on 15/11/19. * Created by zhy on 15/11/19.

@ -1,5 +1,10 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
//plugins {
// id 'com.android.application' version '8.6.0' apply false
// id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
//}
plugins { plugins {
id 'com.android.application' version '8.6.0' apply false alias(libs.plugins.android.application) apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false alias(libs.plugins.kotlin.android) apply false
} }

@ -21,7 +21,7 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the # Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies, # resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library # thereby reducing the size of the R class for that library
#android.nonTransitiveRClass=true android.nonTransitiveRClass=true
#android.defaults.buildfeatures.buildconfig=true #android.defaults.buildfeatures.buildconfig=true

@ -0,0 +1,38 @@
[versions]
agp = "8.8.0"
androidxAppcompatVersion = "1.1.0"
annotationVersion = "1.8.2"
appcompatVersion = "1.7.0"
glide = "4.11.0"
kotlin = "1.9.24"
coreKtx = "1.10.1"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
appcompat = "1.6.1"
material = "1.10.0"
activity = "1.8.0"
constraintlayout = "2.1.4"
recyclerview = "1.3.0"
squareupPicasso = "2.5.2"
[libraries]
androidx-appcompat-v170 = { module = "androidx.appcompat:appcompat", version.ref = "appcompatVersion" }
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "recyclerview" }
annotation = { module = "androidx.annotation:annotation", version.ref = "annotationVersion" }
appcompat-v110 = { module = "androidx.appcompat:appcompat", version.ref = "androidxAppcompatVersion" }
com-squareup-picasso-picasso = { module = "com.squareup.picasso:picasso", version.ref = "squareupPicasso" }
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }

@ -1,6 +1,6 @@
#Mon Oct 23 10:17:58 GMT+08:00 2023 #Thu Jan 16 17:33:21 CST 2025
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

@ -12,20 +12,11 @@ android {
} }
dependencies { dependencies {
implementation "androidx.appcompat:appcompat:1.1.0" implementation libs.appcompat.v110
implementation "androidx.annotation:annotation:1.1.0" implementation libs.annotation
implementation "androidx.recyclerview:recyclerview:1.0.0" implementation libs.androidx.recyclerview
//noinspection UseTomlInstead
implementation 'it.sephiroth.android.library.imagezoom:library:1.0.4' implementation 'it.sephiroth.android.library.imagezoom:library:1.0.4'
compileOnly 'com.github.bumptech.glide:glide:4.9.0' compileOnly libs.glide
compileOnly 'com.squareup.picasso:picasso:2.5.2' compileOnly libs.com.squareup.picasso.picasso
} }
//publish {
// userOrg = 'zhihu'
// groupId = 'com.zhihu.android'
// artifactId = 'matisse'
// publishVersion = '0.5.3-beta3'
// desc = 'A well-designed local image selector for Android'
// website = 'https://www.zhihu.com/'
//}

@ -11,6 +11,6 @@ android {
} }
dependencies { dependencies {
implementation 'com.android.support:support-v4:25.2.0' implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:25.2.0' implementation 'com.android.support:recyclerview-v7:28.0.0'
} }

@ -12,10 +12,6 @@ android {
dependencies { dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs') implementation fileTree(include: ['*.jar'], dir: 'libs')
// androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
// exclude group: 'com.android.support', module: 'support-annotations'
// })
//implementation 'com.android.support:appcompat-v7:26.+'
implementation files('libs/isoparser-1.0.6.jar') implementation files('libs/isoparser-1.0.6.jar')
implementation files('libs/aspectjrt-1.7.3.jar') implementation files('libs/aspectjrt-1.7.3.jar')
} }

Loading…
Cancel
Save