gpt4 book ai didi

找不到 android.support.design.CoordinatorLayout 类

转载 作者:太空宇宙 更新时间:2023-11-03 12:31:37 25 4
gpt4 key购买 nike

我在集成新的设计库时遇到了以下崩溃,目前还没有找到解决方法:

扩展类 android.support.design.CoordinatorLayout 时出错

这是我的 gradle 文件:

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
applicationId "xxxxxxxx"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':volley')
compile 'com.android.support:design:23.0.0'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:support-v4:23.0.0'
compile 'com.android.support:recyclerview-v7:23.0.0'
compile 'com.android.support:cardview-v7:23.0.0'
}

...和应用样式:

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->

<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<item name="android:colorAccent">@color/accent</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="android:windowBackground">@android:color/white</item>

<item name="android:colorControlNormal">#cccccc</item>
</style>

公共(public)类 TabbedScreenActivity 扩展 AppCompatActivity

最佳答案

它在 android.support.design.widget 包中。膨胀 android.support.design.widget.CoordinatorLayout

关于找不到 android.support.design.CoordinatorLayout 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32248473/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com