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

修改布局文件增量编译出错! #702

Closed sixgodIT closed 7 years ago

sixgodIT commented 7 years ago

全量编译没有问题,代码改动增量也没有问题,修改res里面的内容增量编译就出错,下面日志只是修改了简单的textview文本,所有的布局文件修改都会报下面的错误:

python freeline.py --debug [DEBUG] [dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=True, version=False, wait=False) [DEBUG] [dispatcher] Android Gradle Plugin Version: 2.2.3 [DEBUG] [dispatcher] Freeline Gradle Plugin Version: 0.8.6 [DEBUG] [dispatcher] *** Freeline Python Version: v0.8.4 [DEBUG] [scan_changed_files_command] find /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml has modification. [DEBUG] find MPChartLib3 has 0 java files modified. [DEBUG] find network has 0 java files modified. [DEBUG] find app has 0 java files modified. [DEBUG] find kefu has 0 java files modified. [DEBUG] find live has 0 java files modified. [DEBUG] find yxrequest has 0 java files modified. [DEBUG] find ui has 0 java files modified. [DEBUG] find base has 0 java files modified. [DEBUG] find social_sdk_library_project has 0 java files modified. [DEBUG] find guideview has 0 java files modified. [DEBUG] find utils has 0 java files modified. [DEBUG] find GenseeLib has 0 java files modified. [DEBUG] project just need a incremental build. [DEBUG] file changed list: { "build_info": { "last_clean_build_time": 1488937382.0, "is_root_config_changed": false }, "projects": { "MPChartLib3": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "network": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "app": { "src": [], "so": [], "assets": [], "libs": [], "res": [ "/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml" ], "config": [], "cpp": [], "manifest": [] }, "kefu": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "live": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "yxrequest": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "ui": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "base": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "social_sdk_library_project": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "guideview": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "utils": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] }, "GenseeLib": { "src": [], "so": [], "assets": [], "libs": [], "res": [], "config": [], "cpp": [], "manifest": [] } } } [DEBUG] [gradle_inc_builder] find app modules have res changed [DEBUG] [task_engine] depth: 1, task: [connect_device_task] [DEBUG] [task_engine] depth: 1, task: [gradle_aapt_task] [DEBUG] [task_engine] depth: 2, task: [utils] [DEBUG] [task_engine] depth: 2, task: [network] [DEBUG] [task_engine] depth: 2, task: [MPChartLib3] [DEBUG] [task_engine] depth: 2, task: [kefu] [DEBUG] [task_engine] depth: 2, task: [ui] [DEBUG] [task_engine] depth: 2, task: [social_sdk_library_project] [DEBUG] [task_engine] depth: 2, task: [guideview] [DEBUG] [task_engine] depth: 2, task: [GenseeLib] [DEBUG] [task_engine] depth: 4, task: [yxrequest] [DEBUG] [task_engine] depth: 5, task: [base] [DEBUG] [task_engine] depth: 7, task: [live] [DEBUG] [task_engine] depth: 13, task: [app] [DEBUG] [task_engine] depth: 14, task: [merge_dex_task] [DEBUG] [task_engine] depth: 16, task: [gradle_sync_task] [DEBUG] [task_engine] depth: 17, task: [clean_cache_task] [DEBUG] [task_engine] depth: 18, 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] [app_inc_invoker] find app has resource files modification. [DEBUG] [sync_client] apktime path: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-assets/apktime [DEBUG] [gradle_aapt_task] start to execute aapt command... [DEBUG] [sync_client] your local sync value is: 404114 [DEBUG] [tracing] generate_id_keeper_files: 0.697135925293ms [DEBUG] [sync_client] your local uuid value is: 404114 [DEBUG] replace /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res with target resource dir: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res [DEBUG] [databinding_processor] java -jar freeline/release-tools/databinding-cli8.jar -p com.yunxiao.haofenshu -i /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res -o /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res -d /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo -c /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/java -l false -v 14 -s /Users/xzz/Library/Android/sdk -a /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml [DEBUG] [sync_client] server result is 1 [DEBUG] [sync_client] find device port: 41128 [DEBUG] [connect_device_task] connect_device_task finish in 0.2s [DEBUG] [databinding_processor] process databinding resources success: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res [DEBUG] [app_inc_invoker] replace /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml with output path: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res/layout/activity_login.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_active_account-layout.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_active_change_pwd-layout.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_bind_student-layout.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_forgetpwd-layout.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_login-layout.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_register-layout.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_reset_pwd-layout.xml [DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/list_item_loginpop-layout.xml [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.bindPhone.ActiveBindPhoneContract.Presenter [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.changePwd.ActiveChangePwdContract.Presenter [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.bindStudent.BindStudentContract.Presenter [DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/forgetPwd/ForgetPwdViewModel.java [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.forgetPwd.ForgetPwdContract.Presenter [DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/utils/PrefUtil.java [DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/LoginViewModel.java [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.login.LoginContract.Presenter [DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/register/RegisterViewModel.java [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.register.RegisterContract.Presenter [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.resetPwd.ResetPwdContract.Presenter [DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java-gen/com/yunxiao/haofenshu/account/greendao/AccountDb.java [DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/AccountPopAdapter.java [DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.login.AccountPopAdapter.ViewHolder [DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/java/android/databinding/layouts/DataBindingInfo.java to app module [DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/forgetPwd/ForgetPwdViewModel.java to app module [DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/utils/PrefUtil.java to app module [DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/LoginViewModel.java to app module [DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/register/RegisterViewModel.java to app module [DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java-gen/com/yunxiao/haofenshu/account/greendao/AccountDb.java to app module [DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/AccountPopAdapter.java to app module [DEBUG] [tracing] incremental_databinding_process: 713.155031204ms [DEBUG] replace /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res with target resource dir: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res [DEBUG] [app_inc_invoker] find relative path: res/layout/activity_login.xml [DEBUG] [app_inc_invoker] find relative path: res/values/freeline_id_keeper_public.xml [DEBUG] [app_inc_invoker] find relative path: res/values/freeline_id_keeper_ids.xml [DEBUG] [app_inc_invoker] aapt exec: freeline/release-tools/FreelineAapt package -f -I /Users/xzz/Library/Android/sdk/platforms/android-23/android.jar -M /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/AndroidManifest.xml -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/social_sdk_library_project/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/social_sdk_library_project/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/social_sdk_library_project/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/kefu/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/guideview/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/ui/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/GenseeLib/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/guideview/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/utils/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/network/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/guideview/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.6/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/net.zetetic/android-database-sqlcipher/3.5.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/res -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/assets -A /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/kefu/src/main/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.6/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/assets --custom-package com.yunxiao.haofenshu -m -J /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup --auto-add-overlay -P /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/res/values/freeline_id_keeper_public.xml -F /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/respack/app.pack --debug-mode --auto-add-overlay --no-version-vectors --buildIncrement res/layout/activity_login.xml:res/values/freeline_id_keeper_public.xml:res/values/freeline_id_keeper_ids.xml --resoucres-md5-cache-path /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/arsc_cache.dat --ignore-assets public_id.xml:public.xml:.bak:. [DEBUG] [gradle_aapt_task] gradle_aapt_task finish in 0.8s [DEBUG] [network] network start to run after waiting 0.8s [DEBUG] [utils] utils start to run after waiting 0.8s [DEBUG] [MPChartLib3] MPChartLib3 start to run after waiting 0.8s [DEBUG] [kefu] kefu start to run after waiting 0.8s [DEBUG] [ui] ui start to run after waiting 0.6s [DEBUG] [social_sdk_library_project] social_sdk_library_project start to run after waiting 0.0s [DEBUG] [guideview] guideview start to run after waiting 0.0s [DEBUG] [GenseeLib] GenseeLib start to run after waiting 0.0s [DEBUG] [yxrequest] yxrequest start to run after waiting 0.0s [DEBUG] [base] base start to run after waiting 0.0s [DEBUG] [live] live start to run after waiting 0.0s [DEBUG] [app] app start to run after waiting 0.0s [DEBUG] [merge_dex_task] merge_dex_task start to run after waiting 0.0s [DEBUG] [gradle_sync_task] gradle_sync_task start to run after waiting 0.0s [DEBUG] [clean_cache_task] clean_cache_task start to run after waiting 0.0s [DEBUG] [update_stat_task] update_stat_task start to run after waiting 0.0s [DEBUG] [task_engine] task engine occurs exception, engine will exit. [DEBUG] [task_engine] it takes task engine 0.85s to execute tasks. [ERROR] -------------------------------------------------------- [ERROR] Freeline ERROR [ERROR] --------------------------------------------------------

gChangeList = res/layout/activity_login.xml:res/values/freeline_id_keeper_public.xml:res/values/freeline_id_keeper_ids.xml -resoucres-md5-cache-path = /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/arsc_cache.dat warning: overwriting '/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.6/assets/apktime' with '/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-assets/apktime' (skipping file '.DS_Store' due to ANDROID_AAPT_IGNORE pattern '.') (skipping file '.DS_Store' due to ANDROID_AAPT_IGNORE pattern '.') (skipping file '.DS_Store' due to ANDROID_AAPT_IGNORE pattern '.*') /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/AndroidManifest.xml:2: error: Error parsing XML: unbound prefix

[ERROR] -------------------------------------------------------- [ERROR] incremental res build failed. [ERROR] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.7s [DEBUG] Task engine running time: 0.9s [DEBUG] Total time: 1.6s [DEBUG] --------------------------------------------------------

lomanyong commented 7 years ago

@sixgodIT 日志已经有提示: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/AndroidManifest.xml:2: error: Error parsing XML: unbound prefix

这个文件有问题,修改即可。

sixgodIT commented 7 years ago

@lomanyong 这个文件没有做任何改动,改的只是个简单的布局文件,没有改动注册表,增量编译如果出错也应该是改动的文件出错,现在的情况是只要改动任何布局文件,都会报这个相同的错误。 freeline生成的AndroidManifast.xml文件没有xmlns:android="http://schemas.android.com/apk/res/android" 前缀。

image

sixgodIT commented 7 years ago

@lomanyong 全量编译时也会报错,但是能运行起来。 [INFO] preparing for tasks... [-][read_project_info_task] finished. in 3.9s [-][generate_file_stat_task] finished. in 0.2s [-][gradle_clean_build_task] finished. in 172.2s [-][clean_all_cache_task] finished. in 0.2s [-][install_apk_task] finished. in 9.8s [-][build_base_resource_task] failed. in 3.7s [-][generate_project_info_task] finished. in 0.0s [-][generate_apt_files_task] finished. in 0.0s [-][append_file_stat_task] finished. in 0.0s [ERROR] -------------------------------------------------------- [ERROR] Freeline ERROR [ERROR] --------------------------------------------------------

-resoucres-md5-cache-path = /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/arsc_cache.dat warning: overwriting '/Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.5/assets/apktime' with '/Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/freeline-assets/apktime' /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup/AndroidManifest.xml:2: error: Error parsing XML: unbound prefix

[ERROR] -------------------------------------------------------- [ERROR] build base resources failed with: freeline/release-tools/FreelineAapt package -f -I /Users/xzz/Library/Android/sdk/platforms/android-23/android.jar -M /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup/AndroidManifest.xml -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/freeline-databinding/app/69dcfbfb96e82d74def31f0862c7e92a/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/social_sdk_library_project/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/hfs-parent/kefu/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/ui/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/src/main/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/social_sdk_library_project/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/GenseeLib/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/hfs-parent/social_sdk_library_project/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/utils/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/src/main/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/network/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.5/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/net.zetetic/android-database-sqlcipher/3.5.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup/res -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/freeline-assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/src/main/assets -A /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/hfs-parent/kefu/src/main/assets -A /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.5/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/assets -m -J /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup --auto-add-overlay -F /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/base-res.so --debug-mode --no-version-vectors --resoucres-md5-cache-path /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/arsc_cache.dat --ignore-assets public_id.xml:public.xml:.bak:. [ERROR] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.4s [DEBUG] Task engine running time: 185.9s [DEBUG] Total time: 186.3s [DEBUG] --------------------------------------------------------

sixgodIT commented 7 years ago

@lomanyong 找到原因了,项目中集成了tinker,把tinker去掉增量编译就可以了。请问有什么解决方案吗

lomanyong commented 7 years ago

@sixgodIT debug的时候不要开启tinker应该就可以了,freeline的用户同时使用tinker的还不少...

Heart2009 commented 7 years ago

同样遇到了这个问题,卸载全量编译时正常,一修改xml就会遇到上面的问题,请问有什么最新的解决方案吗 @lomanyong @sixgodIT

biyeshengplay commented 7 years ago

参考这个,看能不能解决 #793