gpt4 book ai didi

android - 如何在 gradle 中导入 android.support.v7.widget.AppCompatCheckBox

转载 作者:行者123 更新时间:2023-11-29 15:43:32 25 4
gpt4 key购买 nike

我需要使用这个小部件:

android.support.v7.widget.AppCompatCheckBox

但是当我启动应用程序时,我得到一个 ClassNotFoundException 那么我应该向 build.gradle 添加什么依赖项以便我能够使用它?

最佳答案

您应该根据此要求更改您的compileSdkVersion

compileSdkVersion 22 // compileSdkVersion is the version of the compiler used in building the app
buildToolsVersion "22.0.1"

然后调用

compile 'com.android.support:appcompat-v7:22.0.0'

然后Clan-Rebuild-Sync

关于android - 如何在 gradle 中导入 android.support.v7.widget.AppCompatCheckBox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36575976/

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