j3A*_*App 2 android offline gradle android-studio android-glide
自从升级到Android Studio 3.1以来,我遇到了一个大问题:
No cached version of com.github.bumptech.glide:compiler:4.6.1 available for offline mode
Run Code Online (Sandbox Code Playgroud)
但是我不处于离线模式,您可以在此处看到:
我尝试了“清理项目”和“重建项目”,但都没有成功。我什至重启了我的电脑。
这是我的Build.gradle:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation "com.android.support:gridlayout-v7:27.1.0"
implementation 'com.android.support:exifinterface:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.code.gson:gson:2.8.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
}
Run Code Online (Sandbox Code Playgroud)
我遇到了这个问题,并且在gradle设置中未选中“离线工作”。在浪费了2个小时之后,我意识到在Build,Execution,Deployment> Compiler的命令行选项中有--offline。因此,请确保在遇到此问题时没有在该位置列出该命令。
| 归档时间: |
|
| 查看次数: |
8651 次 |
| 最近记录: |