Android Studio中的编译错误

AndroidKrayze

我的项目在2天前完美编译,直到今天,我一直在收到以下错误消息:

错误:(17,23)错误:包com.google.gson不存在错误:(324,51)错误:找不到符号类JsonElement

请参考下图: 参考

我尝试过重建项目,并且使所有缓存无效,但没有运气。

克里斯托·斯托亚诺夫(Hristo Stoyanov)

该图书馆似乎丢失了。确保在应用程序build.gradle文件中添加依赖项,如下所示:

compile 'com.google.code.gson:gson:2.8.0'

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Android Studio中突然发生编译错误;错误:找不到符号类ComputableLiveData

Android NDK编译错误NDK_PROJECT_PATH = null

Android Studio编译错误:类中不存在枚举常量INSTANT_RUN_REPLACEMENT

Android VLC的编译错误

Android Studio编译错误“序言中不允许内容”

Android使用buildozer编译错误

Vogella Android教程,Android Studio中的编译器错误

Android内核编译错误gcc6 linaro 6

Android Studio 2.3.2上的JNI编译错误

如何在Android Studio上显示编译错误的详细信息?

Android Studio 3中Executor的编译错误

从Android Studio'3.2 Canary 16'升级到'3.2 Beta 1'后,数据绑定编译错误

Android Studio编译器中的错误?

在<declare-styleable> FontFamilyFont中,无法找到属性android:ttcIndex-Cordova构建编译错误

编译错误-由以下原因引起:java.lang.ClassNotFoundException:在android studio中找不到类“ com.google.android.gms.common.internal.zzbo”

Android编译错误

Android Proguard编译错误

Android JB 4.2.2编译错误

如何解决Android NDK中的“对'ntohl'的未定义引用”编译错误?

如何解决Android NDK中的编译错误?

由于mContext对象,Android中的编译错误

Android Studio编译错误,在differents模块中具有相同的包

Android内核编译错误

编译错误:在Android Studio中找不到符号AudioEffect :: setParameter

android studio如何解决编译错误?

解决 Android Studio 中的编译错误?

Android Studio 3.4 Canary 3 编译错误

编译应用程序时 Android Studio 上的 Android 资源编译错误

Android Studio 中的 Flutter 编译错误