-
Notifications
You must be signed in to change notification settings - Fork 421
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
[DISCUSSION] Resource linking failed during Android Studio build #1044
Comments
Ok so I tried removing one of the problematic lines in |
As there is unchanged activity here I assume no one else is having this problem, does anyone know why this (having these resources mentioned in |
I've temporarily solved the build error by commenting out all icon-tags inside In doing that, I've run into a new problem, though, a The log output for the latter exception is as follows:
The line for |
Yeah, i am getting the same thing myself. Deleting the file causes the compilation to fail, and deleting all of the entries in the file (for some reason), successfully compiles the app, but with no icons, even while working on a version of the repo completely up to date with the original branch |
@badlydrawnface Are you able to open the Lawnicons app after it's built or does it crash like it does for me? Because, as I've said, for me it installs but I can't open it, because of the ClassNotFoundException. @naveenccmsd You largely managed the transition away from All of that being said, I might also try opening a PR after all just to see whether it would run for others. And once again, if there is anything I can try or anything you need to know in order to be able to understand my problem, do please ask. |
To resolve resource file missing issue , run sub module svg-proceasor before creating apk build. It will create all the vector files from svg and create other XML files like drawlbke.xml and appfilter.xml... |
About Other issue while opening dex file / java.lang.ClassNotFoundException. Even today I'm getting same exception in my machine but same exception not appearing on some other machine after this version bump As a workaround I always use 1.17 version in my local and won't push the changes to remote. May be you try the same. Below is issue I opened but seems it fixed in 1.19 version but not working in my machine. |
@naveenccmsd Thanks for that info, could you explain how I can run svg-processor, I've never run a sub module. Also, do I have to run this manually before every build? Edit: Figured it out myself |
@naveenccmsd Ok so using your advice I successfully fixed the Resource Linking problem, did have to comment out line 15 from I've gotten a weird error, though, after changing
|
Just delete NaptTrigger.java file which was created by napt plugin |
@naveenccmsd That worked, thank you so much! Finally able to work on new icons again! |
About this discussion
I tried building Lawnicons from my fully up-to-date fork but it failed with an exception. The drawables it's looking for (referenced in lines 4-23 of
grayscale_icon_map.xml
) are indeed not located in res/drawable anymore, but so are all the other drawables ingrayscale_icon_map.xml
? Is this a known issue during the transition to the new icon system or is there something I can do to fix it? If there is any more information you need in order to be able to understand this behaviour I'll be happy to provide it.The exact output is as follows:
`Execution failed for task ':app:processAppDebugResources'.
The text was updated successfully, but these errors were encountered: