小编Yas*_*LDI的帖子

错误:属性“字体”已用不兼容的格式定义

通过 Gradle 构建应用程序时遇到问题,如下所示。我得到了错误:错误:(516)属性“字体”已经用不兼容的格式定义。错误:(298) 此处定义了原始属性。错误:(516) 属性“字体”已用不兼容的格式定义。错误:(298) 此处定义了原始属性。

但是我没有在我的模块中找到使用“字体”属性的地方。

请帮我解决这个问题。

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.3-alpha', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile('com.weiwangcn.betterspinner:library-material:1.1.0') {
        exclude group: 'com.android.support', module: 'appcompat-v7'
        exclude group: 'com.rengwuxian.materialedittext', module: 'library'
    }
    compile('com.quickblox:quickblox-android-sdk-chat:2.6.1@aar') {
        transitive = true
    }
    compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
        transitive = true;
        compile 'com.stripe:stripe-android:+'
    }
    compile('com.crashlytics.sdk.android:answers:1.3.9@aar') {
        transitive = true;
    }
    compile 'com.quickblox:quickblox-android-sdk-core:2.6.1@aar'
    compile 'com.quickblox:quickblox-android-sdk-content:2.6.1@aar'
    compile 'com.quickblox:quickblox-android-sdk-messages:2.6.1@aar'

    compile 'com.android.support:appcompat-v7:26.0.1'
    compile 'com.android.support:design:26.0.1'
    compile 'com.android.support:cardview-v7:26.0.1'
    compile 'com.android.support:recyclerview-v7:26.0.1'
    compile 'com.android.support:leanback-v17:26.0.1'
    compile 'com.android.support:customtabs:26.0.1'
    compile 'com.rengwuxian.materialedittext:library:2.1.4'
    compile 'com.bignerdranch.android:expandablerecyclerview:2.1.1' …
Run Code Online (Sandbox Code Playgroud)

fonts android android-gradle-plugin

5
推荐指数
1
解决办法
3083
查看次数

如何以编程方式设置passwordToggleEnabled

TextInputEditText以编程方式创建了一个并将其设置inputTypetextPassword并且工作正常。但是,来自最后一个支持库的问题我们需要添加app:passwordToggleEnabled="true"以显示密码切换视图。

如何以编程方式设置它?

android

2
推荐指数
1
解决办法
6211
查看次数

标签 统计

android ×2

android-gradle-plugin ×1

fonts ×1