Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报Failed to resolve #5

Open
uminosaki opened this issue Dec 9, 2021 · 0 comments
Open

报Failed to resolve #5

uminosaki opened this issue Dec 9, 2021 · 0 comments

Comments

@uminosaki
Copy link

因为是出学者,所以使用方法可能不对想请教一下

根目录 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

请问一下要如何使用?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant