且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的Studio项目无法解析ActionBarSherlock进口

更新时间:2023-10-23 17:09:04

首先同步您的使用gradle这个项目,并检查它是否提供了一些错误,如果它工作得很好回去试试您的任何类别的进口来自actionbarsherlock库的东西。

First sync your project with gradle and check if it gives some error, if it worked fine go back and try importing something from actionbarsherlock library in any of your class.

如果上面的步骤没有帮助。检查一次Your_Project / your_module /建设/爆炸,捆/ ComActionbarsherlock ... / classes.jar存在与否。

If above step doesn't help. Check once Your_Project/your_module/build/exploded-bundles/ComActionbarsherlock.../classes.jar exists or not.

然后再为这样的:

从清洁项目建设>清理项目,同步你的项目,比的gradle检查此作为参考。

Clean your project from Build > Clean Project, sync your project with gradle than check this for reference.

Import谷歌Play服务库Android Studio中

或者按照以下步骤:


  • 退出Android的工作室

  • 从项目中删除所有.iml文件和文件夹.idea里面

  • 重新启动] Android的工作室,等到的gradle与
  • 完全同步的项目
  • Exit Android Studio
  • Delete all the .iml files and files inside .idea folder from your project
  • Relaunch Android Studio and wait till the project synced completely with gradle

这是错误Android Studio中0.4.2固定为Android工作室0.4.3版本。

This is bug in Android Studio 0.4.2 and fixed for Android Studio 0.4.3 release.