2016-07-04 33 views
-3
07-04 14:56:08.701 31281-31281/com.yardout E/Zygote: v2 
07-04 14:56:08.701 31281-31281/com.yardout I/libpersona: KNOX_SDCARD checking this for 10268 
07-04 14:56:08.701 31281-31281/com.yardout I/libpersona: KNOX_SDCARD not a persona 
07-04 14:56:08.711 31281-31281/com.yardout I/SELinux: Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-J700F_5.1.1 ver=48 
07-04 14:56:08.711 31281-31281/com.yardout I/SELinux: Function: selinux_compare_spd_ram , priority [1] , priority version is VE=SEPF_SM-J700F_5.1.1_0048 
07-04 14:56:08.711 31281-31281/com.yardout E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL 
07-04 14:56:08.711 31281-31281/com.yardout I/art: Late-enabling -Xcheck:jni 
07-04 14:56:08.721 31281-31281/com.yardout D/TimaKeyStoreProvider: in addTimaSignatureService 
07-04 14:56:08.721 31281-31281/com.yardout D/TimaKeyStoreProvider: TimaSignature is unavailable 
07-04 14:56:08.721 31281-31281/com.yardout D/ActivityThread: Added TimaKesytore provider 
07-04 14:56:08.741 31281-31281/com.yardout I/InjectionManager: Inside getClassLibPath + mLibMap{0=, 1=} 
07-04 14:56:08.741 31281-31281/com.yardout W/ResourcesManager: getTopLevelResources: com.yardout for user 0 
07-04 14:56:08.751 31281-31281/com.yardout I/InjectionManager: Inside getClassLibPath caller 
07-04 14:56:30.261 31281-31281/com.yardout I/GMPM: App measurement is starting up, version: 8487 
07-04 14:56:30.261 31281-31281/com.yardout I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE 
07-04 14:56:30.271 31281-31281/com.yardout W/ResourcesManager: getTopLevelResources: com.yardout for user 0 
07-04 14:56:30.311 31281-31281/com.yardout E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin. 
07-04 14:56:30.311 31281-31281/com.yardout E/GMPM: Scheduler not set. Not logging error/warn. 
07-04 14:56:30.431 31281-32271/com.yardout E/GMPM: Uploading is not possible. App measurement disabled 

第一次加載的應用程序有上述logs..and它採取30至40秒黑屏......第一次加載應用程序需要太多的時間,Android的

不知道真正的問題。你能指導我克服嗎?

+1

添加代碼,請 – Zoe

+0

沒有在你的代碼在看看(你'Activity'的和'Fragment'的'的onCreate()'/'onActivityCreated()' ),沒有人能告訴你爲什麼。 – Sufian

回答

0

所以在InjectionManagerApp measurement之間差不多是22s的差距。 之間(或在InjectionManager結束時)正在花時間。

嘗試在該初始化代碼中放置更多日誌,或者嘗試Method trace(儘管我不確定它會在多長時間內收集數據,如果早期啓動也可以跟蹤)。

編輯: 關於跟蹤:看起來像完全裝備的東西(獨立於apk,除了當然你需要一個調試apk,不要使用即時運行時微調性能,因爲結果可以稍微扭曲(幾%)通過即時運行功能) - 所以把一些睡眠(10秒)作爲應用程序將要做的第一件事(最終在完全不同的加載活動中,然後啓動真正的啓動活動)。在休眠期間,將設備監視器中的跟蹤器連接起來,並且應該完全啓動跟蹤數據的應用程序。

0

是其由於gradle這個版本... 由我自己解決,只是改變了gradle這個版本和它現在的工作很好..

+1

請添加更多信息,比如什麼是舊的,以及您使用的新gradle版本是什麼。 – Sufian

0

你可以嘗試禁用instantRun?它解決了我的問題。

0

只要改變gradle這個版本和它的做工精細

相關問題