Apache Cordova splash screens not showing in Android

后端 未结 9 1555
一生所求
一生所求 2020-12-05 10:24

I am running Apache Cordova 3.6.3-0.2.13. And I try to get the splash screens working. I have followed the documentation on http://cordova.apache.org/docs/en/3.6.0/config_re

9条回答
  •  天涯浪人
    2020-12-05 10:35

    After carefully following the PhoneGap CLI splash screen instructions, my Android splash screen was still not showing up. I then looked at build.gradle under platforms/android and noticed that changes I made to the defaultConfig block were causing changes to AndroidManifest.xml that ultimately prevented the splash screen from working. Below is the defaultConfig block I was using:

    defaultConfig {
        applicationId "com.leadingedje"
        minSdkVersion 17
        targetSdkVersion 21
        versionCode getAppVersionCode()
        versionName getAppVersionName()
    }
    

    When I removed this block from build.gradle, the splash screen started working again.

提交回复
热议问题