Open gongzelong0718 opened 1 month ago
在local.properties里添加: workingDirPath=/Users/gongzelong/Downloads/sdk/build-tools/32.0.0/
发现可以Gradle Sync成功。
Issue:
但是点击运行的时候就报错:
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE FAILURE: Build completed with 7 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve com.wang.avi:library:2.1.3. Required by: project :app > project :wgllss-common-re-library > Could not resolve com.wang.avi:library:2.1.3. > Could not get resource 'https://jitpack.io/com/wang/avi/library/2.1.3/library-2.1.3.pom'. > Could not HEAD 'https://jitpack.io/com/wang/avi/library/2.1.3/library-2.1.3.pom'. Received status code 401 from server: Unauthorized
Investigation:
看着貌似是这个库下载不下来。我点击了这个链接,能访问,但是提示要输入username和password。
你好 我这边能够拉取下来,wgllss-common-re-library 和maven-wgllss-common-re-library 工程内 我把本地 包进去了,可以注释掉放开
`dependencies { //如果implementation 'com.wang.avi:library:2.1.3' 拉取不下来 放开下面这句注释,用本地的包 // implementation files('libs/com_wang_avi_library-2.1.3.aar')
implementation libSupportAppcompat
implementation 'androidx.activity:activity-ktx:1.3.0-rc01'
implementation 'androidx.fragment:fragment-ktx:1.4.0-alpha04'
implementation "androidx.core:core-ktx:$rootProject.ext.kotlin_version"
implementation 'com.github.bumptech.glide:glide:4.13.2'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
//权限申请框架
implementation 'com.github.getActivity:XXPermissions:16.2'
}`
在local.properties里添加: workingDirPath=/Users/gongzelong/Downloads/sdk/build-tools/32.0.0/
发现可以Gradle Sync成功。
Issue:
但是点击运行的时候就报错:
Investigation:
看着貌似是这个库下载不下来。我点击了这个链接,能访问,但是提示要输入username和password。
[
](url)