alibaba / freeline

A super fast build tool for Android, an alternative to Instant Run
https://www.freelinebuild.com/
BSD 3-Clause "New" or "Revised" License
5.48k stars 623 forks source link

全量更新可用,增量更新不能安装更新包 #906

Open android-happy opened 6 years ago

android-happy commented 6 years ago

增量更新打印出log日志: D:\Asworkspace\guwen># '#' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

D:\Asworkspace\guwen>python freeline.py [DEBUG] [dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=False, version=False, wait=False) [DEBUG] [dispatcher] Android Gradle Plugin Version: 2.3.2 [DEBUG] [dispatcher] Freeline Gradle Plugin Version: 0.8.7 [DEBUG] [dispatcher] *** Freeline Python Version: v0.8.7 [DEBUG] find consultant has 0 java files modified. [DEBUG] project just need a incremental build. [DEBUG] file changed list: { "stat_md5": {}, "build_info": { "last_clean_build_time": 1509951453.374671, "is_root_config_changed": false }, "projects": { "consultant": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] } } } [DEBUG] [task_engine] depth: 1, task: [connect_device_task] [DEBUG] [task_engine] depth: 1, task: [gradle_aapt_task] [DEBUG] [task_engine] depth: 2, task: [consultant] [DEBUG] [task_engine] depth: 3, task: [merge_dex_task] [DEBUG] [task_engine] depth: 5, task: [gradle_sync_task] [DEBUG] [task_engine] depth: 6, task: [clean_cache_task] [DEBUG] [task_engine] depth: 7, task: [update_stat_task] [DEBUG] [connect_device_task] connect_device_task start to run after waiting 0.0s [DEBUG] [gradle_aapt_task] gradle_aapt_task start to run after waiting 0.0s [DEBUG] [sync_client] start to connect device... [DEBUG] [gradle_aapt_task] no need to execute [DEBUG] [sync_client] apktime path: D:\Asworkspace\guwen\consultant\build\freeline\freeline-assets\apktime [DEBUG] [gradle_aapt_task] gradle_aapt_task finish in 0.0s [DEBUG] [consultant] consultant start to run after waiting 0.0s [DEBUG] [sync_client] your local sync value is: 762001 [DEBUG] [sync_client] your local uuid value is: 762000 [DEBUG] [consultant_inc_invoker] consultant old R.java path: D:\Asworkspace\guwen\consultant\build\generated\source\r\debug\com\quanyou\lygw\R.java [DEBUG] [consultant_inc_invoker] consultant new R.java path: D:\Asworkspace\guwen\consultant\build\freeline\consultant\backup\com\quanyou\lygw\R.java [DEBUG] [consultant_inc_invoker] src changed files: [DEBUG] [consultant_inc_invoker] [] [DEBUG] [consultant_inc_invoker] consultant project has no change, need not go ahead [DEBUG] [consultant_inc_invoker] consultant code only change R.java, need not go ahead [DEBUG] [consultant_inc_javac_compile] no need to execute [DEBUG] [consultant_inc_dex_compile] no need to execute [DEBUG] [consultant] consultant finish in 0.0s [DEBUG] [merge_dex_task] merge_dex_task start to run after waiting 0.0s [DEBUG] [merge_dex_task] merge_dex_task finish in 0.0s [DEBUG] [sync_client] server result is 1 [DEBUG] [sync_client] find device port: 41128 [DEBUG] [connect_device_task] connect_device_task finish in 1.9s [DEBUG] [gradle_sync_task] gradle_sync_task start to run after waiting 1.9s [DEBUG] [sync_client] consultant has no need to sync inc res pack. [DEBUG] [sync_client] no incremental dexes in D:\Asworkspace\guwen\consultant\build\freeline\freeline-dexes [DEBUG] [gradle_sync_task] gradle_sync_task finish in 0.2s [DEBUG] [clean_cache_task] clean_cache_task start to run after waiting 2.1s [DEBUG] [clean_cache_task] clean_cache_task finish in 0.0s [DEBUG] [update_stat_task] update_stat_task start to run after waiting 2.1s [DEBUG] [update_stat_task] update_stat_task finish in 0.0s [DEBUG] [task_engine] it takes task engine 2.2s to execute tasks. [DEBUG] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.4s [DEBUG] Task engine running time: 2.2s [DEBUG] Total time: 2.6s [DEBUG] --------------------------------------------------------

D:\Asworkspace\guwen>

logcat控制台输出错误: 11-06 15:30:43.243 14648-14648/com.quanyou.lygw W/dalvikvm: VFY: unable to resolve const-class 9247 (Lorg/micro/freeline/hackload/ClassVerifier;) in Lcom/quanyou/lygw/Consultant/PPKHXSDKHelper; 11-06 15:30:43.254 14648-14648/com.quanyou.lygw W/dalvikvm: VFY: unable to resolve const-class 9247 (Lorg/micro/freeline/hackload/ClassVerifier;) in Lcom/quanyou/lygw/Consultant/HXSDKHelper; 11-06 15:30:43.391 14648-14648/com.quanyou.lygw W/dalvikvm: VFY: unable to resolve check-cast 2152 (Landroid/util/ArrayMap;) in Lcom/antfortune/freeline/resources/MonkeyPatcher; 11-06 15:30:43.397 14648-14648/com.quanyou.lygw W/dalvikvm: VFY: unable to resolve const-class 2152 (Landroid/util/ArrayMap;) in Lcom/antfortune/freeline/resources/MonkeyPatcher;