Android 项目抱怨“无法解决类型 bolts.Task.它是从所需的 .class 文件间接引用的" [英] Android project complaining "The type bolts.Task cannot be resolved. It is indirectly referenced from required .class files"

查看:33
本文介绍了Android 项目抱怨“无法解决类型 bolts.Task.它是从所需的 .class 文件间接引用的"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 Parse Mealspotting 教程,但是在添加 Parse 库之后我收到奇怪的错误.我在谷歌搜索时发现了其他类似的错误,但没有任何效果.这是一个. 我还阅读了添加支持库,但这并没有解决它.

I'm trying to go through the Parse Mealspotting tutorial, but after adding the Parse library I'm getting weird errors. I've found other similar errors while googling, but nothing that has worked. Here's one. I also read to look at Adding the Support Libraries, but that didn't fix it.

确切的文字是:

此行有多个标记- 类型 bolts.Task 无法解决.它是从所需的 .class 文件间接引用的- 类文件 Task包含签名'Ljava/util/Set.TaskCompletionSource;>;'格式错误于位置 30

我不关心支持库或应用程序将在哪些设备上运行,我只想让它工作,这样我就可以完成教程.有没有人处理过这个问题?

I don't care about the support libraries or what devices the app will work on, all I want is for this to work so I can go through the tutorial. Has anyone dealt with this before?

我也尝试创建一个仅支持 Kit Kat 的项目并删除了支持库,但它仍然抛出相同的错误.

I have also tried creating a project that only supports Kit Kat and removed the support libraries, but it's still throwing the same error.

推荐答案

尝试在您的项目中添加 bolts-android-1.1.3 库.您可以在 Parse SDK zip 文件中找到它.

Try to add the bolts-android-1.1.3 lib in your project. You can find it in the Parse SDK zip file.

这篇关于Android 项目抱怨“无法解决类型 bolts.Task.它是从所需的 .class 文件间接引用的"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆