导入 android.support.design.widget.FloatingActionButton 无法解决[Eclipse]
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38373037/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The import android.support.design.widget.FloatingActionButton cannot be resolved[Eclipse]
提问by KS CS
The import android.support.design.widget.FloatingActionButton cannot be resolved[Eclipse]
导入 android.support.design.widget.FloatingActionButton 无法解决[Eclipse]
Project Built target-API 23
项目构建目标- API 23
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />
Added jar lib folder:
添加了 jar lib 文件夹:
android-support-v7-appcompat.jar
appcompat-v7-23.1.1-sources.jar
design-23.1.1-sources.jar
android-support-v7-appcompat.jar
appcompat-v7-23.1.1-sources.jar
design-23.1.1-sources.jar
回答by malmling
If you are using Android Studio-
如果您使用的是Android Studio-
then try to add this in your build.gradle
(app level)
然后尝试将其添加到您的build.gradle
(应用程序级别)
compile 'com.android.support:design:23.1.1'
compile 'android-support-v7-appcompat:23.1.1'
as you are targeting to API 23
因为您的目标是API 23