错误的任何解决方案:资源android:attr / popupPromptView是私有的?

时间:2019-06-20 21:08:28

标签: android android-gradle

我有一个用eclipse创建的android项目,我已将其导入Android Studio,开始修复错误,但我不知道如何解决该问题

我已经更改了targetSdkVersionminSdkVersioncompileVersion,我也更改了一些依赖项,但仍然没有解决办法

这是我的礼物:

apply plugin: 'com.android.application'

    android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

    defaultConfig {
        applicationId "com.wansoft"
        minSdkVersion 14
        targetSdkVersion 28
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 
    'proguard-rules.txt'
            }
        }

        packagingOptions {
            exclude 'META-INF/DEPENDENCIES'
            exclude 'META-INF/LICENSE'
            exclude 'META-INF/LICENSE.txt'
            exclude 'META-INF/license.txt'
            exclude 'META-INF/NOTICE'
            exclude 'META-INF/NOTICE.txt'
            exclude 'META-INF/notice.txt'
            exclude 'META-INF/ASL2.0'
        }
    }

    dependencies {
    implementation project(':sherlockSlidingMenu')
    implementation project(':pullToRefresh')
    implementation project(':roboAccordionView')
    //compile 'com.android.support:support-v4:25.3.1'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.google.code.gson:gson:2.2.4'
    implementation 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
    //compile 'com.android.support:support-v4:18.0.0'
    implementation files('libs/commons-lang3-3.1.jar')
    implementation files('libs/guice-3.0-no_aop.jar')
    implementation files('libs/http-request-5.4.jar')
    implementation files('libs/jackson-core-asl-1.9.11.jar')
    implementation files('libs/jackson-mapper-asl-1.9.11.jar')
    implementation files('libs/javax.inject-1.jar')
    implementation files('libs/retrofit-1.6.1.jar')
    implementation files('libs/roboguice-2.0.jar')
    implementation files('libs/spring-android-core-1.0.1.RELEASE.jar')
    implementation files('libs/spring-android-rest-template-1.0.1.RELEASE.jar')
    implementation 'com.android.support:support-annotations:+'
   }

这是我得到的错误:

Android resource linking failed
/Users/dario_leija/Documents/Proyectos_Documentos/ComanderoAndroid/wansoftApp/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:1550: error: resource android:attr/popupPromptView is private.
error: failed linking references.

0 个答案:

没有答案