Open xyzmst opened 7 years ago
@xyzmst 请提供相关的操作,日志,以及示例代码...不然没办法定位任何问题...
操作就是:修改 布局文件属性 ,这里修改了 LinearLayout 的 layout_gravity python freeline.py 后 闪退 报错信息: android.content.res.Resources$NotFoundException: File res/layout/lesson_card_no_progress.xml from xml type layout resource ID #0x7f040116
@xyzmst 这样子没办法分析原因...如果没办法描述的话,看下是否能够提供可以复现的sample代码吧...
刚试了下,sample 里的代码,没有问题,可能我的项目引用的东西太多了,没找到到底是因为什么引起的问题,有已知的不支持的库吗,比如 annotations,butterknife之类的
@xyzmst 这几个库不会造成 resources not found 的问题的...你出现这个 resources not found 的时候,再点击一下 app ,可以正常打开吗?
@lomanyong hi,我找到问题 的原因了,是这样的,资源文件,并没有用默认的目录,而是自定义的目录
sourceSets {
main {
res.srcDirs = [
'src/main/res/layouts/expl',
'src/main/res/layouts/photoalbum',
'src/main/res/layouts/myfavorities'
]
}
}
这样布局文件修改后,应该是不会刷新布局文件目录 请问 我该如何修改
@xyzmst 添加一下资源路径,参考:资源编译出错:Public symbol xxxx declared here is not defined.
调试信息显示刷新了,但是依然找不到id
[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.2
[DEBUG] [dispatcher] *** Freeline Gradle Plugin Version: 0.8.4
[DEBUG] [dispatcher] *** Freeline Python Version: v0.8.4
[DEBUG] [scan_changed_files_command] find /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/card/layout/study_punched_card.xml has modification.
[DEBUG] find mofunshow has 0 java files modified.
[DEBUG] project just need a incremental build.
[DEBUG] file changed list:
{
"build_info": {
"last_clean_build_time": 1483969221.0,
"is_root_config_changed": false
},
"projects": {
"mofunshow": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [
"/Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/card/layout/study_punched_card.xml"
],
"config": [],
"cpp": [],
"manifest": []
}
}
}
[DEBUG] [gradle_inc_builder] find mofunshow 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: [mofunshow]
[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] [sync_client] start to connect device...
[DEBUG] [gradle_aapt_task] gradle_aapt_task start to run after waiting 0.0s
[DEBUG] [sync_client] apktime path: /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/freeline-assets/apktime
[DEBUG] [mofunshow_inc_invoker] find mofunshow has resource files modification.
[DEBUG] [sync_client] your local sync value is: 813144
[DEBUG] [gradle_aapt_task] start to execute aapt command...
[DEBUG] [sync_client] your local uuid value is: 813144
[DEBUG] [tracing] generate_id_keeper_files: 2.18892097473ms
[DEBUG] [tracing] incremental_databinding_process: 0.581026077271ms
[DEBUG] [mofunshow_inc_invoker] find relative path: card/layout/study_punched_card.xml
[DEBUG] [mofunshow_inc_invoker] find relative path: res/values/freeline_id_keeper_public.xml
[DEBUG] [mofunshow_inc_invoker] find relative path: res/values/freeline_id_keeper_ids.xml
[DEBUG] [mofunshow_inc_invoker] aapt exec: freeline/release-tools/FreelineAapt package -f -I /Users/mst/android_sdk/platforms/android-23/android.jar -M /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/manifests/full/ADEBUG/debug/AndroidManifest.xml -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/expl -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/photoalbum -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/myfavorities -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/auth -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/section -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/microblog -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/square -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/course -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/friend -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/personal -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/primsg -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/home -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/mofunshow -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/setting -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/welcome -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/search -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/card -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/profile -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/share -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/circle -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/live -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/pay -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/channel -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/widget -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/discovery -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/study -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/dub -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/user -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/dynamic -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/study4learn -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/generated/res/rs/ADEBUG/debug -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/generated/res/resValues/ADEBUG/debug -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.4/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.hugo/hugo-runtime/1.2.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.4.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.4.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.4.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.4.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/design/23.4.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.rxbinding/rxbinding/0.3.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.rxbinding/rxbinding-design/0.3.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.rxbinding/rxbinding-appcompat-v7/0.3.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.sensorsdata.analytics.android/SensorsAnalyticsSDK/1.6.34/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.tencent.bugly/crashreport/2.1.3/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/libresample/1.0.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/soundtouch/0.2.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/audiofactory/4.20.10/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/sprinkles/2.1.12/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/umeng/1.0.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/ijkplayer-armv7a/0.4.4.2/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/ijkplayer-armv5/0.4.4.2/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/ijkplayer-java/0.4.4.2/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/exoplayercompat/1.3/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.android/facebook-android-sdk/4.0.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.amlcurran.showcaseview/library/5.0.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.frankiesardo/linearlistview/1.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.johnkil.android-appmsg/appmsg/1.2.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/fbcore/0.9.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-base/0.9.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline/0.9.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/drawee/0.9.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/fresco/0.9.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/stickyheaderslist/2.5.3/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/loadingeverywhere/2.9/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/emojicon/1.6.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/circleprogress/1.0.5/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/showtipsview/1.0.0.4/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/slidedatetimepicker/1.0.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/viewpagerindicator/1.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/swipelistview/1.0.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/pulltorefresh/1.0.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/androidgifdrawable/1.0.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/photopicker/1.0.2.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/photocropper/2.1.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/de.hdodenhof/circleimageview/1.2.2/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.lsjwzh/materialloadingprogressbar/0.5.4-RELEASE/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.siyamed/android-shape-imageview/0.9.3/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.timehop.stickyheadersrecyclerview/library/0.4.2/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.daimajia.androidanimations/library/1.1.3/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.daimajia.easing/library/1.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.wefika/flowlayout/0.4.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.lsjwzh/recyclerviewpager/0.5.3/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.astuetz/pagerslidingtabstrip/1.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/mofunpay/0.0.1.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/sharekit/1.2.4/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/mofunapi/0.7.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/mofunnet/0.7.0/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.qiniu/qiniu-android-sdk/7.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/autoscrollviewpager/1.2.2/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/res -S /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/backup/res -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/freeline-assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/generated/assets/shaders/ADEBUG/debug -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.4/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.hugo/hugo-runtime/1.2.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.4.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.4.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.4.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.4.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/design/23.4.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.rxbinding/rxbinding/0.3.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.rxbinding/rxbinding-design/0.3.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.jakewharton.rxbinding/rxbinding-appcompat-v7/0.3.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.sensorsdata.analytics.android/SensorsAnalyticsSDK/1.6.34/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.tencent.bugly/crashreport/2.1.3/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/libresample/1.0.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/soundtouch/0.2.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/audiofactory/4.20.10/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/sprinkles/2.1.12/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/umeng/1.0.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/ijkplayer-armv7a/0.4.4.2/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/ijkplayer-armv5/0.4.4.2/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/ijkplayer-java/0.4.4.2/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/exoplayercompat/1.3/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.android/facebook-android-sdk/4.0.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.amlcurran.showcaseview/library/5.0.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.frankiesardo/linearlistview/1.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.johnkil.android-appmsg/appmsg/1.2.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/fbcore/0.9.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-base/0.9.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline/0.9.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/drawee/0.9.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.facebook.fresco/fresco/0.9.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/stickyheaderslist/2.5.3/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/loadingeverywhere/2.9/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/emojicon/1.6.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/circleprogress/1.0.5/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/showtipsview/1.0.0.4/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/slidedatetimepicker/1.0.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/viewpagerindicator/1.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/swipelistview/1.0.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/pulltorefresh/1.0.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/androidgifdrawable/1.0.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/photopicker/1.0.2.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/photocropper/2.1.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/de.hdodenhof/circleimageview/1.2.2/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.lsjwzh/materialloadingprogressbar/0.5.4-RELEASE/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.github.siyamed/android-shape-imageview/0.9.3/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.timehop.stickyheadersrecyclerview/library/0.4.2/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.daimajia.androidanimations/library/1.1.3/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.daimajia.easing/library/1.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.wefika/flowlayout/0.4.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.lsjwzh/recyclerviewpager/0.5.3/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.astuetz/pagerslidingtabstrip/1.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/mofunpay/0.0.1.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/sharekit/1.2.4/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/mofunapi/0.7.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/mofunnet/0.7.0/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.qiniu/qiniu-android-sdk/7.0.1/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.mofunsky/autoscrollviewpager/1.2.2/assets -A /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/assets --custom-package com.memory.me -m -J /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/backup --auto-add-overlay -P /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/backup/res/values/freeline_id_keeper_public.xml -F /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/respack/mofunshow.pack --debug-mode --auto-add-overlay --no-version-vectors --buildIncrement card/layout/study_punched_card.xml:res/values/freeline_id_keeper_public.xml:res/values/freeline_id_keeper_ids.xml --resoucres-md5-cache-path /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/arsc_cache.dat --ignore-assets public_id.xml:public.xml:*.bak:.*
[DEBUG] [sync_client] server result is 1
[DEBUG] [sync_client] find device port: 41128
[DEBUG] [connect_device_task] connect_device_task finish in 0.3s
[DEBUG] [mofunshow_inc_invoker] aapt use time: 2672.8079319ms
[DEBUG] [mofunshow_inc_invoker] merged_changed_list:
[DEBUG] [mofunshow_inc_invoker] [u'card/layout/study_punched_card.xml', u'res/values/freeline_id_keeper_public.xml', u'res/values/freeline_id_keeper_ids.xml']
[DEBUG] [tracing] run_incremental_aapt_task: 2676.79095268ms
[DEBUG] [mofunshow_inc_invoker] modify /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/backup/com/memory/me/R.java
[DEBUG] [mofunshow_inc_invoker] copy /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/backup/com/memory/me/R.java to /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/freeline-backup-r/com/memory/me/R.java
[DEBUG] [mofunshow_inc_invoker] modify /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/freeline-backup-r/com/memory/me/R.java
[DEBUG] [tracing] check_other_modules_resources: 65.9139156342ms
[DEBUG] [gradle_aapt_task] gradle_aapt_task finish in 2.7s
[DEBUG] [mofunshow] mofunshow start to run after waiting 2.7s
[DEBUG] [mofunshow_inc_invoker] mofunshow old R.java path: /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/generated/source/r/ADEBUG/debug/com/memory/me/R.java
[DEBUG] [mofunshow_inc_invoker] mofunshow new R.java path: /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/backup/com/memory/me/R.java
[DEBUG] [mofunshow_inc_invoker] find R.java changed (md5 value is different from origin R.java)
[DEBUG] [mofunshow_inc_invoker] src changed files:
[DEBUG] [mofunshow_inc_invoker] [u'/Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/backup/com/memory/me/R.java']
[DEBUG] [mofunshow_inc_invoker] find R.java modified in src list
[DEBUG] [mofunshow_inc_invoker] mofunshow code only change R.java, need not go ahead
[DEBUG] [mofunshow_inc_javac_compile] no need to execute
[DEBUG] [mofunshow_inc_dex_compile] no need to execute
[DEBUG] [mofunshow] mofunshow finish in 0.0s
[DEBUG] [merge_dex_task] merge_dex_task start to run after waiting 2.8s
[DEBUG] [merge_dex_task] merge_dex_task finish in 0.0s
[DEBUG] [gradle_sync_task] gradle_sync_task start to run after waiting 2.8s
[DEBUG] [sync_client] checkresource: http://127.0.0.1:41128/checkResource
[DEBUG] [sync_client] base resource not exists, need to sync full resource pack first
[DEBUG] [sync_client] start to sync full resource pack...
[DEBUG] [sync_client] full pack size: 20972kb
[DEBUG] [sync_client] pushfullpack: http://127.0.0.1:41128/pushFullResourcePack
[DEBUG] [sync_client] start to sync mofunshow incremental res pack...
[DEBUG] [sync_client] mofunshow pack size: 1372kb
[DEBUG] [sync_client] pushres: http://127.0.0.1:41128/pushResource?mode=increment&bundleId=base-res
[DEBUG] [sync_client] sync mofunshow incremental res pack finished
[DEBUG] [sync_client] no incremental dexes in /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/freeline-dexes
[DEBUG] [sync_client] start to sync close longlink...
[DEBUG] [sync_client] closeLongLink: http://127.0.0.1:41128/closeLongLink?no&lastSync=1
[DEBUG] [gradle_sync_task] gradle_sync_task finish in 7.3s
[DEBUG] [clean_cache_task] clean_cache_task start to run after waiting 10.1s
[DEBUG] [clean_cache_task] remove cache: /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/mofunshow/respack/mofunshow.rflag
[DEBUG] [clean_cache_task] refresh mofunshow ids.xml
[DEBUG] [clean_cache_task] clean_cache_task finish in 0.1s
[DEBUG] [update_stat_task] update_stat_task start to run after waiting 9.8s
[DEBUG] [update_stat_task] refresh /Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/src/main/res/layouts/card/layout/study_punched_card.xml stat
[DEBUG] [update_stat_task] update_stat_task finish in 0.1s
[DEBUG] [task_engine] it takes task engine 10.25s to execute tasks.
[DEBUG] --------------------------------------------------------
[DEBUG] Prepare tasks time: 0.3s
[DEBUG] Task engine running time: 10.2s
[DEBUG] Total time: 10.6s
[DEBUG] --------------------------------------------------------
报错信息
android.content.res.Resources$NotFoundException: File res/layout/study_punched_card.xml from xml type layout resource ID #0x7f040228
@xyzmst 将/Users/mst/AndroidStudioProjects/android_phone_9/mofunshow/build/freeline/base-res.so
文件重命名为base-res.apk
,然后在 AS 2.2+ 打开,看下其中的资源内容是否完整
看起来是完整的,但是 依然报错
@xyzmst 可以麻烦确认下这个base-res.apk的包名,跟你使用的applicationId是否一致呢?
是一致的
通过出现过此问题, 但是将 app 杀死后再启动又正常了, 建议你也可以试试
修改布局文件后会找不到 layout resource ID, 只能强制全量编译