我正在尝试导入丝库,以便我可以使用card ui。 (卡片ui有一个指向丝绸库的链接。我会直接发布一个链接,但网站不会让我这个库导入,但是我收到以下错误:
Description Resource Path Location Type
R cannot be resolved to a variable ClickableToast.java /Silk-master/src/com/afollestad/silk/views line 36 Java Problem
error: No resource identifier found for attribute 'paddingStart' in package 'android' dialog_listitem_checkbox.xml /Silk-master/res/layout line 8 Android AAPT Problem
R cannot be resolved to a variable ClickableToast.java /Silk-master/src/com/afollestad/silk/views line 37 Java Problem
error: No resource identifier found for attribute 'paddingEnd' in package 'android' dialog_listitem_checkbox.xml /Silk-master/res/layout line 8 Android AAPT Problem
The import com.afollestad.silk.R cannot be resolved ClickableToast.java /Silk-master/src/com/afollestad/silk/views line 11 Java Problem
R cannot be resolved to a variable SilkDatePicker.java /Silk-master/src/com/afollestad/silk/views/time line 153 Java Problem
R cannot be resolved to a variable ClickableToast.java /Silk-master/src/com/afollestad/silk/views line 79 Java Problem
The import com.afollestad.silk.R cannot be resolved SilkListFragment.java /Silk-master/src/com/afollestad/silk/fragments/list line 14 Java Problem
R cannot be resolved to a variable SilkDatePicker.java /Silk-master/src/com/afollestad/silk/views/time line 91 Java Problem
The import com.afollestad.silk.R cannot be resolved SilkDatePicker.java /Silk-master/src/com/afollestad/silk/views/time line 11 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 379 Java Problem
The import com.afollestad.silk.R cannot be resolved SilkSpinnerAdapter.java /Silk-master/src/com/afollestad/silk/adapters line 5 Java Problem
R cannot be resolved to a variable SilkSpinnerAdapter.java /Silk-master/src/com/afollestad/silk/adapters line 13 Java Problem
R cannot be resolved to a variable SilkSpinnerAdapter.java /Silk-master/src/com/afollestad/silk/adapters line 14 Java Problem
R cannot be resolved to a variable SilkListFragment.java /Silk-master/src/com/afollestad/silk/fragments/list line 118 Java Problem
error: No resource identifier found for attribute 'layout_marginStart' in package 'android' dialog_layout.xml /Silk-master/res/layout line 20 Android AAPT Problem
error: No resource identifier found for attribute 'paddingEnd' in package 'android' dialog_layout.xml /Silk-master/res/layout line 29 Android AAPT Problem
error: No resource identifier found for attribute 'layout_marginEnd' in package 'android' dialog_layout.xml /Silk-master/res/layout line 20 Android AAPT Problem
error: No resource identifier found for attribute 'layout_marginStart' in package 'android' dialog_layout.xml /Silk-master/res/layout line 62 Android AAPT Problem
error: No resource identifier found for attribute 'layout_marginEnd' in package 'android' dialog_layout.xml /Silk-master/res/layout line 62 Android AAPT Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 222 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 235 Java Problem
The import com.afollestad.silk.R cannot be resolved SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 13 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 310 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 311 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 289 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 306 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 323 Java Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 342 Java Problem
error: No resource identifier found for attribute 'paddingEnd' in package 'android' dialog_listitem_radio.xml /Silk-master/res/layout line 8 Android AAPT Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 317 Java Problem
error: No resource identifier found for attribute 'paddingStart' in package 'android' dialog_listitem_radio.xml /Silk-master/res/layout line 8 Android AAPT Problem
R cannot be resolved to a variable SilkDialog.java /Silk-master/src/com/afollestad/silk/dialogs line 318 Java Problem
我做了什么: 我解压缩丝库并将其导入eclipse,如here所示。 然后我检查了属性中的isLibrary事物。 我一直在寻找答案,但我找不到答案。我已经尝试清理项目并删除并重新导入。这些都没有奏效。这个库非常适合我想要的东西,我真的很想让它工作。如果您需要更多信息,请随时提出。
答案 0 :(得分:0)
您正在使用以下属性及其API级别> 17
支持 paddingStart
paddingEnd
layout_marginStart
layout_marginEnd
你的min sdk低于API 17.
Added in API level 17
public static final int paddingStart
public static final int layout_marginStart