Skip to content
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

Open
ydcool opened this issue Aug 11, 2015 · 15 comments
Open

Fail to exec with too much errors. #2

ydcool opened this issue Aug 11, 2015 · 15 comments

Comments

@ydcool
Copy link

ydcool commented Aug 11, 2015

Part of log file:

cast me.ydcool.kungfupao:41128 as gradle project with both /res and /src changed
Fail to exec ['/Users/Shared/Android/sdk/build-tools/23.0.0_rc3/aapt', 'package', '-f', '--auto-add-overlay', '-F', '/Volumes/Data/ydcool/workspace_studio/KungfuPao/app/build/lcast/res.zip', '-S', '/Volumes/Data/ydcool/workspace_studio/KungfuPao/easing/src/main/res', '-S', '/Volumes/Data/ydcool/workspace_studio/KungfuPao/common/src/main/res', '-S', '/Volumes/Data/ydcool/workspace_studio/KungfuPao/app/src/main/res', '-S', '/Volumes/Data/ydcool/workspace_studio/KungfuPao/app/build/lcast/res', '-M', '/Volumes/Data/ydcool/workspace_studio/KungfuPao/app/src/main/AndroidManifest.xml', '-I', '/Users/Shared/Android/sdk/platforms/android-22/android.jar']

/Volumes/Data/ydcool/workspace_studio/KungfuPao/app/src/main/res/drawable-xxhdpi/duration_minus.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Volumes/Data/ydcool/workspace_studio/KungfuPao/app/src/main/res/drawable-xxhdpi/duration_plus.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
...

难道跟我项目module有关系?
另,我用的是lcast.jar而非maven,因为会提示 warning:Avoid using + in verson numbers....,sync之后也找不到包无法import.

@mmin18
Copy link
Owner

mmin18 commented Aug 11, 2015

lcast.jar和maven没区别的,另外log file打不开,提示DNS错误

@ydcool
Copy link
Author

ydcool commented Aug 11, 2015

@mmin18 sorry,域名出了点问题,
重新贴log file

@mmin18
Copy link
Owner

mmin18 commented Aug 11, 2015

/Volumes/Data/ydcool/workspace_studio/KungfuPao/app 下面没有build文件夹,build的临时文件是配置在别的地方了吗?如果有/build能把/build/intermediates/exploded-aar下面的文件夹结构发过来吗。

@ydcool
Copy link
Author

ydcool commented Aug 11, 2015

没有build是因为当时我手动删除了build。

现在的情况是,run之后不会报错,但是我在layout xml中添加代码始终报has no /res /src changes.
静静等待1~2分钟后再次点击插件按钮就又会报上面同样的错。

文件夹结构

@wqycsu
Copy link

wqycsu commented Aug 12, 2015

我也遇到了类似的错误

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.
..........
..........

@niray
Copy link

niray commented Aug 13, 2015

遇到了同样的问题。as gradle project with /res changed ,run之后仅支持一次修改,而且是仅支持*.java文件。

@adrien-aubel
Copy link

+1

... as gradle project with /res changed
Fail to exec ['.../Library/Android/sdk/build-tools/23.0.0-preview/aapt', 'package', '-f', '--auto-add-overlay', '-F', '.../build/lcast/res.zip', '-S', .../res', '-S', '.../build/lcast/res', '-M', .../AndroidManifest.xml', '-I', '.../Library/Android/sdk/platforms/android-22/android.jar']

I'm having about 500 errors of this style:

.../res/values/styles.xml:72: error: Error: No resource found that matches the given name: attr 'spinBars'.

.../res/values/styles.xml:104: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'.

.../res/values/styles.xml:98: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.SearchView'.

@feliu
Copy link

feliu commented Aug 20, 2015

+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'

Timeszoro added a commit to Timeszoro/LayoutCast that referenced this issue Aug 25, 2015
@ragnraok
Copy link

ragnraok commented Sep 5, 2015

+1 我也遇到了相同的错误,但是修改Java文件就不会有这个问题了:

cast casttest.example.com.layoutcasttest:41128 as gradle project with both /res and /src changed (v1.50827)
Fail to exec [u'/Users/ragnarok/adt-bundle-mac-x86_64-20131030/sdk/build-tools/android-4.4/aapt', 'package', '-f', '--auto-add-overlay', '-F', u'/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res.zip', '-S', u'/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res', '-S', u'/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/src/main/res', '-M', u'/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/src/main/AndroidManifest.xml', '-I', u'/Users/ragnarok/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-22/android.jar']

/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:103: error: Public symbol attr/actionBarDivider declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:104: error: Public symbol attr/actionBarItemBackground declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:97: error: Public symbol attr/actionBarPopupTheme declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:102: error: Public symbol attr/actionBarSize declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:99: error: Public symbol attr/actionBarSplitStyle declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:98: error: Public symbol attr/actionBarStyle declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:93: error: Public symbol attr/actionBarTabBarStyle declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:92: error: Public symbol attr/actionBarTabStyle declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:94: error: Public symbol attr/actionBarTabTextStyle declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:100: error: Public symbol attr/actionBarTheme declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:101: error: Public symbol attr/actionBarWidgetTheme declared here is not defined.
/Users/ragnarok/Works/Exercise/android/LayoutCastTest/app/build/lcast/res/values/public.xml:129: error: Public symbol attr/actionButtonStyle declared here is not defined.
....

感觉像是public.xml里面这个文件的所有的资源都是没有定义的

@LuigiPapino
Copy link

Some duplicated issue: #33 #39

And this is a sample project to replicate the error: https://github.com/LuigiPapino/LayoutCastTest
Ubuntu 15.04 and AndroidStudio 14 RC 3

@LuigiPapino
Copy link

I tried to execute the example for AndroidStudio in the repository and it works fine.
If I try to create a new fresh project, aapt return the error as mentioned before.
So I tried to update example with build tools 1.3.0 and all sdk reference to 23, and it still works. Indeed I don't think it is a problem with sdk 23.

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.

 /home/nietzsche/android_sdk/build-tools/22.0.1/aapt package -v -f --auto-add-overlay  -F ./app/build/lcast/res.zip -S ./app/build/lcast/res -S ./app/src/main/res -M ./app/src/main/AndroidManifest.xml -I /home/nietzsche/android_sdk/platforms/android-23/android.jar

If I remove the "app/build/lcast/res" the execution is ok.

@YangHaiquan
Copy link

点赞 但资源修改会报错 代码修改是ok的

cast com.github.mmin18.layoutcast.gradle:41128 as gradle project with /res changed (v1.50922)
Fail to exec [u'/Users/jingche/Documents/android/classpath/build-tools/23.0.1/aapt', 'package', '-f', '--auto-add-overlay', '-F', u'/Users/jingche/Documents/android/github/LayoutCast/sample-androidstudio/CastGradleTest/build/lcast/res.zip', '-S', u'/Users/jingche/Documents/android/github/LayoutCast/sample-androidstudio/CastGradleTest/build/lcast/res', '-S', u'/Users/jingche/Documents/android/github/LayoutCast/sample-androidstudio/CastGradleTest/src/main/res', '-S', u'/Users/jingche/Documents/android/github/LayoutCast/sample-androidstudio/CastLibrary/src/main/res', '-S', u'/Users/jingche/Documents/android/github/LayoutCast/library/res', '-M', u'/Users/jingche/Documents/android/github/LayoutCast/sample-androidstudio/CastGradleTest/src/main/AndroidManifest.xml', '-I', u'/Users/jingche/Documents/android/classpath/platforms/android-23/android.jar']

@dutlxq2014
Copy link

修改资源报错是因为aapt打包的时候缺少两个资源目录:appcompat-v7和freco,无法生成res.apk,在项目根目录的cast.py文件中 line:758处加这两个res目录就可以了,exporesdir改成项目的绝对路径,appcompat改成自己使用的版本

exporesdir = '$/LayoutCast/sample-androidstudio/CastGradleTest/build/intermediates/exploded-aar/'
aaptargs.append('-S')
aaptargs.append(os.path.join(exporesdir, 'com.android.support/appcompat-v7/22.2.0/res'))
aaptargs.append('-S')
aaptargs.append(os.path.join(exporesdir, 'com.facebook.fresco/drawee/0.6.0/res'))

@farmerjohngit
Copy link

@dutlxq2014 你好 我在我的项目下 没有看到cast.py这个文件啊

@dutlxq2014
Copy link

@farmerjohngit https://github.com/mmin18/LayoutCast 这个项目拉下来就有这个打包用的cast.py脚本文件,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests