我正在尝试通过 Parse Mealspotting教程,但在添加 Parse 库后,我遇到了奇怪的错误。我在谷歌搜索时发现了其他类似的错误,但没有任何效果。 Here's one.我也读书看看Adding the Support Libraries ,但这并没有解决它。
准确的文本是:
Multiple markers at this line
- The type bolts.Task cannot be resolved. It is indirectly referenced from required .class files
- The class file Task<?> contains a signature 'Ljava/util/Set<Lbolts/Task<*>.TaskCompletionSource;>;' ill-formed at
position 30
我不关心支持库或该应用程序可以在哪些设备上运行,我只想让它运行,以便我可以完成教程。以前有人处理过这个问题吗?
我也试过创建一个只支持 Kit Kat 的项目并删除了支持库,但它仍然抛出同样的错误。
最佳答案
尝试在您的项目中添加 bolts-android-1.1.3 库。您可以在 Parse SDK zip 文件中找到它。
关于Android 项目提示 "The type bolts.Task cannot be resolved. It is indirectly referenced from required .class files",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26622547/