FORUMS

Enable Multi-Window Mode on M Developer Preview

What was not mentioned in yeterday’s keynote was Android M’s multi-window … more

I/O Summary: Google Cardboard Virtual Reality

One year ago, Google introduced cardboard. Amazingly enough, that was all it took to fire … more

Android M Preview Images – XDA TV

Android M preview images are available. That and much more news is covered by Jordan when he … more

I/O Summary: How Android M Handles Power And Charging

In the spirit of improving the core Android experience, Google is changing Android … more

Error while Compiling Home.apk

Thanks Meter: 1,782
 
By ShyamSasi, Recognized Contributor on 25th September 2011, 08:23 AM
Post Reply Subscribe to Thread Email Thread
I get this error while compiling.

Code:
D:\APK Manager\other\..\projects\Home.apk\res\values\styles.xml:16: error: Error
 retrieving parent for item: No resource found that matches the given name 'Layo
ut'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\SHYAMS~1\AppData\Local\Tem
p\APKTOOL1060512814595837586.tmp, -I, C:\Users\Shyam Sasindran\apktool\framework
\1.apk, -S, D:\APK Manager\other\..\projects\Home.apk\res, -M, D:\APK Manager\ot
her\..\projects\Home.apk\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
        at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
        at brut.androlib.Androlib.buildResources(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.apktool.Main.cmdBuild(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\SHYAMS~1\AppData\Local\Temp\APKTOOL1060512814595837586.tmp, -I, C:\Users\Sh
yam Sasindran\apktool\framework\1.apk, -S, D:\APK Manager\other\..\projects\Home
.apk\res, -M, D:\APK Manager\other\..\projects\Home.apk\AndroidManifest.xml]
        at brut.util.OS.exec(Unknown Source)
        ... 7 more
The system cannot find the file specified.
Not sure what I'm doing wrong. I treid to decomplie with resources and tried to add framework-res.apk and SemcGenericUxpRes.apk
Last edited by ShyamSasi; 25th September 2011 at 08:30 AM.
 
 
25th September 2011, 08:41 AM |#2  
XperienceD's Avatar
Senior Member
Flag Here =)
Thanks Meter: 2,507
 
More
I just got the same error too without even changing anything. What files are you changing?
25th September 2011, 09:11 AM |#3  
subhankar.ds's Avatar
Senior Member
Flag Kolkata-India
Thanks Meter: 559
 
Donate to Me
More
This is happening for all system apk for ver-283
25th September 2011, 09:38 AM |#4  
ShyamSasi's Avatar
OP Recognized Contributor
CLASSIFIED
Thanks Meter: 1,782
 
Donate to Me
More
Quote:
Originally Posted by XperienceD

I just got the same error too without even changing anything. What files are you changing?

Thanks for the response.

I'll editing the \Home.apk\res\values\styles.xml to enable more Home screens.
25th September 2011, 09:43 AM |#5  
XperienceD's Avatar
Senior Member
Flag Here =)
Thanks Meter: 2,507
 
More
Quote:
Originally Posted by subhankar.ds

This is happening for all system apk for ver-283

The Home.apk is the only thing I've had an issue with so far.
Quote:
Originally Posted by ShyamSasi

Thanks for the response.

I'll editing the \Home.apk\res\values\styles.xml to enable more Home screens.

Select yes for system app, then no to copy over unmodded and see if it builds the resources file, if it does copy that from the keep folder and see if it's worked.
25th September 2011, 08:57 PM |#6  
datagubben's Avatar
Senior Member
Flag Landskrona
Thanks Meter: 486
 
More
Any progress?
26th September 2011, 03:47 PM |#7  
Member
Thanks Meter: 27
 
More
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
The Following 14 Users Say Thank You to IncubusUA For This Useful Post: [ View ]
26th September 2011, 11:02 PM |#8  
datagubben's Avatar
Senior Member
Flag Landskrona
Thanks Meter: 486
 
More
Quote:
Originally Posted by IncubusUA

Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...

It worked flawlessly, super thanx to people like You and the XDA forum!

Have a nice day!
26th September 2011, 11:35 PM |#9  
Soheil_rf's Avatar
Senior Member
Flag Tehran
Thanks Meter: 885
 
More
Quote:
Originally Posted by IncubusUA

Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...


Very Nice , thanks
11th October 2011, 10:17 PM |#10  
Junior Member
Thanks Meter: 0
 
More
cant compile I get same error =( sad... very very sad...
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes