Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Compiling for Gear VR fails

AnJanson
Advocate

Compiling for Gear VR fails

AnJanson
Advocate
Advocate

Hi,

 

I try to compile a project for Gear VR, but get the following error:

Editor / General: Android Packager: Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [aapt, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 25, --version-code, 1, --version-name, 1.0, -F, C:\Users\ANDREA~1.JAN\AppData\Local\Temp\APKTOOL13100425274353655554.tmp, -0, arsc, -0, arsc, -I, C:\Users\andreas.janson\AppData\Local\apktool\framework\1.apk, -S, C:\Users\andreas.janson\AppData\Local\Temp\tmp8077.tmp\deploy\res, -M, C:\Users\andreas.janson\AppData\Local\Temp\tmp8077.tmp\deploy\AndroidManifest.xml]
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
	at brut.androlib.Androlib.buildResources(Androlib.java:412)
	at brut.androlib.Androlib.build(Androlib.java:311)
	at brut.androlib.Androlib.build(Androlib.java:264)
	at brut.apktool.Main.cmdBuild(Main.java:227)
	at brut.apktool.Main.main(Main.java:84)
...

I have installed the latest android sdk on my computer and I have set up the environment Variable ANDROID_HOME.

I have created and attached the oculus signature.

I have set the Android flavor to GearVR.

Any ideas what could be the problem?

 

Regards

Andreas

Reply
Reply
0 Likes
Reply
Accepted solutions (1)
1,013 Views
3 Replies
Replies (3)

AnJanson
Advocate
Advocate
Has anyone succeeded in creating a project for the Gear VR? What where the steps?
Reply
Reply
0 Likes

AnJanson
Advocate
Advocate
Accepted solution

I finally managed it.

I followed (more or less) the steps described on the following page:

http://help.autodesk.com/view/Stingray/ENU/?guid=__stingray_help_getting_started_get_started_android...

Now it compiles to a .apk file that I could install.

 

Reply
Reply
0 Likes

Anonymous
Not applicable

Hi.

How you set to point the JAVA_HOME and ANDROID_HOME???

 

tks.

Reply
Reply
0 Likes