Android Webview应用程序抛出错误,链接参考失败

时间:2019-07-10 11:25:59

标签: android android-studio gradle android-gradle build.gradle

重构包名称后,我正在重用旧的Webview项目。

但是现在它抛出了错误

Android resource linking failed
error: resource style/Theme.AppCompat.Light.NoActionBar (aka   com.homerevise.studyapp:style/Theme.AppCompat.Light.NoActionBar) not found.

我已经看过此解决方案,但不确定如何在此处应用。 error: failed linking references. -> QueuedJob

这是styles.xml

<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colortrans</item>
        <item name="colorPrimaryDark">@color/colortrans</item>
        <item name="colorAccent">@color/colortrans</item>


        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>

    </style>

</resources>

我正在粘贴gradle构建代码,该代码在网上显示错误     实施'com.android.support:appcompat-v7:26.1.0'

dependencies {
    implementation 'com.google.firebase:firebase-core:17.0.0'
   // implementation 'com.google.firebase:firebase-messaging:11.0.4'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.volley:volley:1.1.0'
    implementation 'com.android.support:multidex:1.0.1'

   // compile "me.leolin:ShortcutBadger:1.1.19@aar"
}
configurations.all {
    resolutionStrategy {
        force 'com.android.support:support-v4:27.1.0'
    }
}

我对android不太有经验。因此无法弄清楚为什么会这样。任何帮助将不胜感激。 谢谢

0 个答案:

没有答案