Android应用程序启动-白色屏幕

Android应用程序启动-白色屏幕,android,android-theme,Android,Android Theme,众所周知的onStartup白屏问题也出现在我的应用程序中(仅从昨天开始),但我无法通过以下线程中的任何建议来解决: 还有一些 不仅在启动时,中间还有5-10秒的间歇白色屏幕。这在构建和发布构建中都会发生 以下是我正在使用的代码: styles.xml: <style name="Theme.Transparent" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowNo

众所周知的onStartup白屏问题也出现在我的应用程序中(仅从昨天开始),但我无法通过以下线程中的任何建议来解决:

  • 还有一些

    不仅在启动时,中间还有5-10秒的间歇白色屏幕。这在构建和发布构建中都会发生

    以下是我正在使用的代码:

    styles.xml:

    <style name="Theme.Transparent" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>
    
    
    真的
    假的
    真的
    @空的
    真的
    
    舱单:

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:hardwareAccelerated="true"
        android:theme="@style/AppTheme">
    
        <activity
            android:name=".MainPlayer"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@style/Theme.Transparent"></activity>
    
        <activity
            android:name=".RegisterActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@style/Theme.Transparent">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
    
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    
        <receiver
            android:name="com.blynq.app.services.BootReceiver"
            android:permission="android.permission.RECEIVE_BOOT_COMPLETED"
            android:theme="@style/AppTheme">
            <intent-filter>
                <action android:name="android.intent.action.SCREEN_ON" />
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
            </intent-filter>
        </receiver>
    
    </application>
    
    
    
    这个问题直到昨天才出现。从昨天起,我们也没有更新过Android Studio。目前我正在使用Android Studio 2.1.1


    在急需解决方案的情况下,我们非常感谢您在这方面提供的任何帮助?

    可能是一个很容易解决的问题:您是否有任何可以回滚并比较代码差异的承诺,或者这实际上没有代码更改,只是做了不同的操作?我添加了youtube片段,仅此而已。遗憾的是,这次我并没有使用GIT:/你们是在真实设备上工作还是在模拟器上工作?同样的错误出现在模拟器和真实设备上