-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
因为是出学者,所以使用方法可能不对想请教一下
根目录 build.gradle
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://www.jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.4"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
app下的build.gradle
`plugins {
id 'com.android.application'
}
android {
compileSdk 31
defaultConfig {
applicationId "com.misachu.cameraalbumtest"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
//.........//
implementation 'com.github.DylanCaiCoding:ActivityResultLauncher:1.1.2'
}`
然后报错了
Failed to resolve: com.github.DylanCaiCoding:ActivityResultLauncher:1.1.2
请问一下要如何使用?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels