-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to exec with too much errors. #2
Comments
lcast.jar和maven没区别的,另外log file打不开,提示DNS错误 |
/Volumes/Data/ydcool/workspace_studio/KungfuPao/app 下面没有build文件夹,build的临时文件是配置在别的地方了吗?如果有/build能把/build/intermediates/exploded-aar下面的文件夹结构发过来吗。 |
我也遇到了类似的错误 cast com.example.lcast.layoutcast:41128 as gradle project with /res changed
Fail to exec ['/Users/lcast/Library/Android/sdk/build-tools/23.0.0-preview/aapt', 'package', '-f', '--auto-add-overlay', '-F', '/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res.zip', '-S', '/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/src/main/res', '-S', '/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res', '-M', '/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/src/main/AndroidManifest.xml', '-I', '/Users/lcast/Library/Android/sdk/platforms/android-22/android.jar']
/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res/values/public.xml:103: error: Public symbol attr/actionBarDivider declared here is not defined.
/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res/values/public.xml:104: error: Public symbol attr/actionBarItemBackground declared here is not defined.
/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res/values/public.xml:97: error: Public symbol attr/actionBarPopupTheme declared here is not defined.
/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res/values/public.xml:102: error: Public symbol attr/actionBarSize declared here is not defined.
/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res/values/public.xml:99: error: Public symbol attr/actionBarSplitStyle declared here is not defined.
/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res/values/public.xml:98: error: Public symbol attr/actionBarStyle declared here is not defined.
/Users/lcast/AndroidStudioProjects/MyApplication/lcastdemo/build/lcast/res/values/public.xml:93: error: Public symbol attr/actionBarTabBarStyle declared here is not defined.
..........
.......... |
遇到了同样的问题。as gradle project with /res changed ,run之后仅支持一次修改,而且是仅支持*.java文件。 |
+1
I'm having about 500 errors of this style:
|
+1 b'C:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-hdpi-v4\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xhdpi-v4\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xxhdpi-v4\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-hdpi-v4\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xhdpi-v4\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xxhdpi-v4\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable\com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-hdpi-v4\com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xhdpi-v4\com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xxhdpi-v4\com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-hdpi-v4\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xhdpi-v4\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-ldpi-v4\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-hdpi-v4\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\3.19.1\res\drawable-xhdpi-v4\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\src\main\res\drawable-mdpi\ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\src\main\res\drawable-hdpi\ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\src\main\res\drawable-xhdpi\ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited\r\nC:\android\molondo\molondo\build\lcast\res\values\public.xml:1008: error: Public symbol string/com.crashlytics.android.build_id declared here is not defined.\r\n' |
+1 我也遇到了相同的错误,但是修改Java文件就不会有这个问题了:
感觉像是public.xml里面这个文件的所有的资源都是没有定义的 |
Some duplicated issue: #33 #39 And this is a sample project to replicate the error: https://github.com/LuigiPapino/LayoutCastTest |
I tried to execute the example for AndroidStudio in the repository and it works fine. Then, I tried to make identical the build.gradle files from the example project to the new fresh project and no lucky. It fail with the same error. As last, I tried to execute the aapt form command line and received the same error.
If I remove the "app/build/lcast/res" the execution is ok. |
点赞 但资源修改会报错 代码修改是ok的 cast com.github.mmin18.layoutcast.gradle:41128 as gradle project with /res changed (v1.50922) |
修改资源报错是因为aapt打包的时候缺少两个资源目录:appcompat-v7和freco,无法生成res.apk,在项目根目录的cast.py文件中 line:758处加这两个res目录就可以了,exporesdir改成项目的绝对路径,appcompat改成自己使用的版本 exporesdir = '$/LayoutCast/sample-androidstudio/CastGradleTest/build/intermediates/exploded-aar/' |
@dutlxq2014 你好 我在我的项目下 没有看到cast.py这个文件啊 |
@farmerjohngit https://github.com/mmin18/LayoutCast 这个项目拉下来就有这个打包用的cast.py脚本文件, |
Part of log file:
难道跟我项目module有关系?
另,我用的是lcast.jar而非maven,因为会提示
warning:Avoid using + in verson numbers....
,sync之后也找不到包无法import.The text was updated successfully, but these errors were encountered: