我想用com.Android支持:设计:22.2.0在我的Android Studio(1.3)项目中,但当我添加'com'时。Android支持:设计:22.2.0'到依赖{}我有103个错误,我无法摆脱这个错误。
如果我尝试使用新版本的appcompat,也会发生同样的情况。现在我有了“com”。Android支持:appcompat-v7:19。“以我的身材。格雷德尔。
有人知道吗?
我的错误:
Information:Gradle tasks [:generateDebugSources, :generateDebugAndroidTestSources]
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE
:prepareComAndroidSupportCardviewV72211Library UP-TO-DATE
:prepareComAndroidSupportDesign2220Library UP-TO-DATE
:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServices6111Library UP-TO-DATE
:preparePaketekBeaconEstimoteSdkUnspecifiedLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources
:processDebugManifest
:processDebugResources
/Users/matejl/Documents/AndroidStudio Projects/Paketek-beacon/build/intermediates/exploded-aar/com.google.android.gms/play-services/6.1.11/res/values/wallet_colors.xml
Error:(2) Attribute "color" has already been defined
/Users/matejl/Documents/AndroidStudio Projects/Paketek-beacon/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/values-v21/values-v21.xml
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Subtitle'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Title'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.TextView.SpinnerItem'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(127, 21) No resource found that matches the given name: attr 'android:windowElevation'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(127, 21) No resource found that matches the given name: attr 'android:windowElevation'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless.Colored'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Small'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ButtonBar'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.CheckBox'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.RadioButton'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
Error:(213, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
Error:(213, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.RatingBar'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.TextView.SpinnerItem'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/matejl/Library/Android/sdk/build-tools/19.1.0/aapt'' finished with non-zero exit value 1
Information:BUILD FAILED
Information:Total time: 5.222 secs
Information:103 errors
Information:0 warnings
Information:See complete output in console
还有我的身材。格雷德尔:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
apply plugin: 'android'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:appcompat-v7:19.+'
// compile 'com.android.support:support-v4:21.0.0'
compile 'com.google.android.gms:play-services:6.1.11'
compile 'com.android.support:cardview-v7:22.1.1'
compile 'com.android.support:design:22.2.0'
compile project(':estimote-sdk')
}
android {
signingConfigs {
releaseconfig {
keyAlias 'mobile'
keyPassword '85922881'
storeFile file('/Users/matejl/Documents/AndroidStudio Projects/MobileWorker-SZ/release-mobileworker.jks')
storePassword '85922881'
//master passsowr 85922881
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileSdkVersion 19
buildToolsVersion '19.1.0'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
dexOptions {
preDexLibraries = false
}
defaultConfig {
minSdkVersion 11
targetSdkVersion 19
}
productFlavors {
}
}
谢谢: D
@阿图罗
我对“标题”而不是“颜色”也有同样的问题。你说
“您是否在自定义ATRS xml文件中定义了任何属性颜色?”
是的,我做了,我定义"标题"在我的attrs.xml.
我改成了“edittext_title”,所以我工作了!
非常感谢。
如果您使用的是support and design v22,则必须根据SDK 22进行编译,因此必须修改compileSdkVersion
和buildToolsVersion
:
compileSdkVersion 22
buildToolsVersion '22.0.1'
请记住使用SDK管理器下载APISDK22。
我试图实现一个与Cheesesquare演示应用程序中类似的CollapsingToolBarLayout。 但是,我需要在进入活动时默认折叠工具栏(这样在手机上的横向模式下就不会占用太多空间)。 根据文档,使用标志似乎很容易实现。 但是,我没有获得所需的行为。相反,AppBarLayout一开始显示完全扩展,然后滚动出屏幕,只留下系统栏。 下面是我的布局(对芝士蛋糕的轻微修改):
当我使用设计支持库时,我的应用程序崩溃了。Logcat显示如下:
我对Android Studio3.0金丝雀有一个问题。在所有项目中,我不能使用预览工具中的支持库中的任何视图。显示呈现错误。在新项目中也是同样的问题。 Samople代码: 格雷德尔:
我是Android编程新手。当我尝试将材料设计库添加到build.gradle它在实现'com.android.support: appcompat-v7:28.0.0'下显示错误。 错误消息是: 使用groupId和androidx*无法组合,但可以找到和不兼容的依赖项较少。。。(Ctrl-F1) 检查信息:有些库、工具和库的组合不兼容,或可能导致错误。其中一个不兼容之处是编译时使用的Andro
问题内容: 我是Android的新手。 我正在为Android应用程序(位于现有的多模块项目中)设置一个maven模块,该模块使用Google支持库(v4,v7,v13)。使它与Maven一起使用的最合适的方法是什么。 我希望我的项目能够使用Jenkins(Maven)进行构建,因此我无法链接任何特定于IDE的项目或任何非Maven依赖项的方式。 在Jenkins中组合maven / gradle
我在将设计支持库集成到我的应用程序中时遇到问题。出于某种原因,工具栏会随着 CollapsingToolbarLayout 而折叠,并且不会像 Chris Banes 的 Cheesesquare 示例中那样将其固定。https://github.com/chrisbanes/cheesesquare 我没有对我的布局做任何改变。事实上,我用他的风格取代了我的风格,并放弃了他的布局。我想知道是否使