简体   繁体   English

库android.support.design.widget错误

[英]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.

相关问题 错误:包 android.support.design.widget 不存在 - error: package android.support.design.widget does not exist 错误包 android.support.design.widget 不存在 - error package android.support.design.widget does not exist 在Xamarin中使用android.support.design.widget - Use android.support.design.widget in Xamarin 找不到 android.support.design.widget 类 - android.support.design.widget class not found 错误:包 android.support.design.widget 不存在 import android.support.design.widget.FloatingActionButton; - error: package android.support.design.widget does not exist import android.support.design.widget.FloatingActionButton; 为 android.support.design.widget 更改 TextInputLayout 的 boxBackgroundColor - change boxBackgroundColor of TextInputLayout for android.support.design.widget 包 android.support.design.widget 不存在 - package android.support.design.widget does not exist 无法解决错误:包 android.support.design.widget 不存在问题 - Can't resolve error: package android.support.design.widget does not exist issue Crosswalk Xwalk Webview冲突CollapsingToolbarLayout <android.support.design.widget> - Crosswalk Xwalk Webview conflict CollapsingToolbarLayout<android.support.design.widget> 我的应用程序也使用一次时崩溃 - My app crash when use also once <android.support.design.widget
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM