0

问题是 android studio 无法识别要导入的库。在“构建”文件中,我添加了以下几行,但没有解决问题。错误提示找不到“android.support.design.widget”包

compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:design:22.2.0'
compile 'de.hdodenhof:circleimageview:1.3.0'
4

1 回答 1

0

I solved the problem, now I put them the answer.

First we open the project folder and go to the following path "PROJECT FOLDER \ .idea \ libraries"

Now edit the file: "design_22_2_0.xml" and before "" we put the following lines of code:

<ANNOTATIONS>
  <root url="jar://$PROJECT_DIR$/app/build/intermediates/exploded-aar/com.android.support/design/22.2.0/annotations.zip!/"/>
</ANNOTATIONS>

now you can import the library "android.support.design.widget.NavigationView"

于 2015-07-25T02:23:28.943 回答