[英]Error with library android.support.design.widget
the problem is that android studio does not recognize the library to be imported. 问题是android studio无法识别要导入的库。 in the "build" file i added the lines below, but nothing that I solved the problem.
在“构建”文件中,我添加了以下几行,但没有解决任何问题。 the error says "android.support.design.widget" package not found
错误显示找不到“ 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'
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" 首先,我们打开项目文件夹,然后转到以下路径“ PROJECT FOLDER \\ .idea \\ library”
Now edit the file: "design_22_2_0.xml" and before "" we put the following lines of code: 现在,编辑文件:“ design_22_2_0.xml”,并在“”之前添加以下代码行:
<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" 现在您可以导入库“ android.support.design.widget.NavigationView”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.