错误:无法访问螺栓任务类文件 [英] error: cannot access Task class file for bolts

查看:261
本文介绍了错误:无法访问螺栓任务类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林通过这里给出教程工作,并停留在code的部分IM贴在下面:

Im working through the tutorial given here and im stuck at the section of code posted below:

  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_list_users);
  }

  //display clickable a list of all users
  private void setConversationsList() {
      currentUserId = ParseUser.getCurrentUser().getObjectId();
      names = new ArrayList<String>();

      ParseQuery<ParseUser> query = ParseUser.getQuery();
      query.whereNotEqualTo("objectId", currentUserId);
      query.findInBackground(new FindCallback<ParseUser>() {
          public void done(List<ParseUser> userList, com.parse.ParseException e) {

这是失败的 ParseQuery&LT; ParseUser&GT;查询= ParseUser.getQuery();

错误:(53 14)错误:无法访问任务
  对于bolts.Task类文件未找到

Error:(53, 14) error: cannot access Task class file for bolts.Task not found

我在下面这个困难(知道是什么文件保存在code块去),作为即时通讯完全绿色的Andr​​oid开发人员。

I'm having difficulty following this (knowing what files these code chunks go in) as im totally green at android dev.

谁能告诉我是怎么回事了?

Can someone tell me what is going wrong?

推荐答案

解析库依赖于一个叫博尔特库,是与来自Parse.com网站下载的解析库中的同一个文件夹。

Parse library depends on a library called Bolt which is in the same folder with the Parse library downloaded from the Parse.com website.

这是Android工作室,但它应该是为Eclipse类似。

This is for Android Studio, but it should be similar for Eclipse.

复制和过去的自解压文件夹中的博尔特库到项目的库文件夹。你也可以复制并粘贴整个解压缩后的库文件夹到库文件夹。右键单击解析-的.jar文件,然后选择添加为库或类似如果尚未添加它。做同样的'螺栓,Android系统的.jar文件。尝试再次运行该项目,一切都应该工作。

Copy and past the Bolt library from the unzipped folder into the 'libs' folder of your project. You can also just copy and paste the entire unzipped library folder into the 'libs' folder. Right click on the 'Parse-.jar' file and select 'Add as library' or similar if it isn't already added. Do the same for the 'bolts-android-.jar' file. Try to run the project again and everything should work.

这篇关于错误:无法访问螺栓任务类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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