我很难导入库“PageSlidingTapStrip”(https://github.com/astuetz/PagerSlidingTabStrip https://github.com/astuetz/PagerSlidingTabStrip).
我发现这个问题(如何将eclipse库项目从github导入到android studio项目? https://stackoverflow.com/questions/20310164/how-to-import-eclipse-library-project-from-github-to-android-studio-project),我遵循这个解决方案。
cf)我使用的是 win 8.1 ,android studio 版本 0.3.6
First, build new project like this condition.
![enter image description here](https://i.stack.imgur.com/WMyd1.png)
其次,转到“文件”->“新建模块”,单击,创建新模块作为 android 库,并设置如下条件。(未选中创建自定义启动器图标、活动)
这部分我有第一个问题。关于“最低要求的 SDK”、“目标 SDK”、“编译方式”我应该选择哪个版本?只关注项目版本? (图像显示我首先创建此窗口时的默认值。)
无论如何,我在“最低要求的 SDK:API 9 / 目标 SDK:API 19 / 编译方式:API 19”条件下取得进展
第三,删除“Project/PageSlidingTabStrip/src/main/”下的文件并复制外部库“res”、“src”、“AndroidManifest.xml”下的文件夹和文件并移至“Project/PageSlidingTabStrip/src/main/”,然后重命名为src到爪哇。
然后项目和文件夹就变成这样了。 (我遵循的问题是,告诉我将文件“ic_launcher-web.png”复制并移动到“res”、“src”、“manifest”之外,但我找不到该文件)
Fourth, go to 'File -> Project setting -> Module -> click project module -> '+' button -> select Module dependency' then apply.
![enter image description here](https://i.stack.imgur.com/eTdsf.png)
After that, I face this error and cannot resolve R.
And I can't go next step, can't finish import library.
What should I do?
还有其他解决办法吗?
感谢您看到很长的问题。我希望能得到解决方案!