我正在尝试通过支持库使用材料组件。使用以“app:....”开头的芯片属性时出现以下错误。我不喜欢迁移到 androidx,因为它还不稳定。我应该下载 android studio 3.2 并迁移到 androidx 吗?请给我一些建议好吗?提前感谢您的帮助。
错误:找不到属性“com.tarifis.tarifis:closeIconVisible”。
<android.support.design.chip.Chip
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="some text"
app:closeIconVisible="visible"
app:closeIcon="@drawable/ic_close_black_24dp"
/>
这是gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.tarifis.tarifis"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/' }
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.code.ksoap2-android:ksoap2-android:3.6.1'
implementation 'com.android.support:cardview-v7:28.0.0-alpha3'
implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'
implementation 'com.koushikdutta.ion:ion:2.1.6'
implementation 'com.android.support:support-v4:28.0.0-alpha3'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support:design:28.0.0-alpha3'
//implementation 'com.google.android.material:material:1.0.0-rc01'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
}