我被困了一天试图解决这个问题我刚刚更新了我的android工作室但是当我打开旧项目时它显示错误
Could not resolve all dependencies for configuration
':app:debugAndroidTestRuntimeClasspath'.
Could not load module metadata from C:\Users\NEELAY\.gradle\caches\modules-
2\metadata-2.36\descriptors\com.android.support\multidex-
instrumentation\1.0.2\5ac5911800d0dfe0ba2d29f224b8c2fb\descriptor.bin
Unexpected metadata type found.
我也跟着一些问题说要卸载 android 支持存储库并重新安装,但它不起作用尝试 gradle.setting 也是正确的。现在我不知道如何解决这个问题,任何帮助都会有所帮助。
显现
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fireapp.manoj.template">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
</application>
这是 list 代码,但不知道为什么它显示为 setting.gradle
知道为什么是因为 gradle 更新
最佳答案
删除缓存。
第一步:打开终端
第 2 步:粘贴 cd C:\Users\NEELAY.gradle\(导航到 .gradle 文件夹)
第 3 步:rm -r 缓存\
第 4 步:现在清理或重建项目
关于android - 无法从中加载模块元数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50002931/