1

我正在开发一个与 Gradle 1.5.0 完美兼容的应用程序。在引入 2.0.0 和 Instant run 功能后,我将 build.gradle 更新为 2.0.0/2.1.0。

我已经开始面临一个问题,我的应用程序启动画面卡住了大约 7_8 秒,然后调用了 SplashActivity 的 onCreate。

我也在设置

<item name="android:windowBackground">@drawable/splash</item>

但用户在那里存货的时间更长。对于我所有的发布版本,我必须切换回 Gradle 1.5.0,一切正常。

我的应用程序类扩展了 MultidexApplication,这个问题与它有关吗?

这是我可以从控制台收集的一些日志。

06-05 20:30:58.168 21611-21611/com.GetIt.debug W/System: ClassLoader referenced unknown path: /data/app/com.GetIt.debug-1/lib/arm
<===============Stucks here for long time ============>

06-05 20:31:36.324 21611-21611/com.GetIt.debug W/System: ClassLoader referenced unknown path: /data/app/com.GetIt.debug-1/lib/arm
06-05 20:31:36.405 21611-21611/com.GetIt.debug I/MultiDex: VM with version 2.1.0 has multidex support
06-05 20:31:36.405 21611-21611/com.GetIt.debug I/MultiDex: install
06-05 20:31:36.405 21611-21611/com.GetIt.debug I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-05 20:31:36.405 21611-21611/com.GetIt.debug I/MultiDex: install
06-05 20:31:36.405 21611-21611/com.GetIt.debug I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-05 20:31:36.730 21611-21611/com.GetIt.debug I/GAv4: Google Analytics 8.2.98 is starting up. To enable debug logging on a device run:
                                                         adb shell setprop log.tag.GAv4 DEBUG
                                                         adb logcat -s GAv4
4

0 回答 0