Log in or register to post comments

First Time Install Help

March 8, 2013 - 12:41pm #1

I am trying to use the Vuforia plugin for Unity. I am trying to export to an android device. Everytime I build and run the game I get this error

 

 

Error building Player: Exception: android (invokation failed)
ERROR: unknown error
cmd:android list target -c
stdout;
stderr:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 
It also asks me for the Android SDK folder. I downloaded the folder and placed on in my programs folder and Unity seems to accept it but I still get errors.
What am I doing wrong? Do I need to install the complete Android development environment as layed out here---
 
 
Thank you so much for your help
 
Chad
 
 
 

First Time Install Help

May 17, 2013 - 3:31pm #29

The setup has to be all done correctly. Go back and double check everything.

First Time Install Help

May 17, 2013 - 2:45pm #28

So you think i should try another time to do what you said me to do?

First Time Install Help

May 17, 2013 - 2:39pm #27

My first time i had to set it up twice too.

First Time Install Help

May 17, 2013 - 2:27pm #26

Yes mate, i tried everything.

Now i totally deleted everything and i will restart from the beginning.

Tell me what to do please. I don't have to use ECLIPSE, i just need to see android camera in unity and buil an apk with the camera view by the phone.

Just this.

(for now.)

First Time Install Help

May 17, 2013 - 2:25pm #25

Have you followed the steps for setting up Unity for Android - http://docs.unity3d.com/Documentation/Manual/android-sdksetup.html

First Time Install Help

May 17, 2013 - 1:47pm #24

I go to

Build

Then he asks me for the sdk path

i give the sdk path and the build crash saying me "error building player: invokation failed"

First Time Install Help

May 17, 2013 - 1:11pm #23

You have to install the Android environment and the Unity extension below

https://developer.vuforia.com/resources/sdk/unity

what errors does your compiler window does say you have?

First Time Install Help

May 17, 2013 - 12:59pm #22

Hello, i did what you tell me to do but it doesn't work.

I actually set everything, and when i go to build the apk it says me the same thing 

"invokation failed"

actually you told me how to install the sdk for vuforia... but i'm using unity and i don't think that's the right way to setup the system....

i don't know what to do.

First Time Install Help

May 17, 2013 - 8:35am #21

If i go on android site

http://developer.android.com/sdk/index.html

 

there is not the SDK download... there is just the ADT download :S i cannot found the sdk link

 

however, i think it's the same!

First Time Install Help

May 17, 2013 - 8:30am #20

I will, thank you very much for the help!

First Time Install Help

May 17, 2013 - 8:25am #19

Gin- Sounds good. Follow the instructions and it will work. Let me know how it goes

 

First Time Install Help

May 17, 2013 - 8:23am #18

Well actually i'm developing an app which use an "AR" when the GPS tracker check the right position.

I just need to insert the phone camera in the scene, and this is why i'm using Vuforia. All the rest will be developed and programmed in a different way.

For now i just need to insert the camera feed in a plane, but unfortunely i'm a beginner in this way of programming.

I'm glad for your help, if you can give me more informations i will be more glad XD

First Time Install Help

May 17, 2013 - 8:17am #17

Gin

-Your system and computer specs are good.

-Intall this app on your phone

https://play.google.com/store/apps/details?id=com.unity3d.androidremote&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS51bml0eTNkLmFuZHJvaWRyZW1vdGUiXQ..

-Make sure you install the current android device driver from the manufacturers website

Follow the instructions in this link verbatim and in order.

https://developer.vuforia.com/resources/dev-guide/step-1-setting-development-environment-android-sdk

It will show you the programs and packages you need. It also shows you how to set up your path variable. I would set up a system restore point before you work with the variable as it can mess up you system if you don't get it right.

-Keystore-This I think is not important for Developer mode.

What is your background?

What is the project?

 

First Time Install Help

May 17, 2013 - 8:04am #16

I'm using a PC with Windows 7, Unity 4, Android drivers and SDK (adt) installed, i don't know how to update the local variable :S

and i don't know what i need for android development.... i followed some tutorials about it and i thought i just need the SDK....and i don't know about this key store...

could you help me please? i have to build this app, and i am new in this sector.

Thank you very much

First Time Install Help

May 17, 2013 - 4:17am #15

Gin what are the specs on your computer and operating system? Are you running this out of Eclipse or unity? Did you install your Android device drivers? Did you update your path variable? Did you install all the programs needed for Android development environment?ddid you install remote viewer on your Android device? Did you create a key store file?

First Time Install Help

May 17, 2013 - 2:18am #14

Hello.

I'm trying to build a simple app with vuforia for android.

Everytime i try to buil, it asks me for the sdk folder. I choose the right sdk folder and then the builder crashes and it says "error  building player: invokation failed"

Please help me...

First Time Install Help

March 14, 2013 - 12:27pm #13

Completed my first APP! Perfect!

First Time Install Help

March 14, 2013 - 11:50am #12

Ok, no problem, good that you sorted it out.

First Time Install Help

March 14, 2013 - 11:37am #11

You can delete these last few comments. 

First Time Install Help

March 14, 2013 - 11:37am #10

Got ya. No problem. I figured out the problem too. In my build setting I had the wrong project listed. 

 

First Time Install Help

March 14, 2013 - 11:32am #9

Hi, may I ask you to create a new Thread for this (I don't want to diverge from the original topic)  ?

Thanks.

First Time Install Help

March 14, 2013 - 9:47am #8

Now that I am up and running, I am having another issue. I imported some models into Unity and they worked fine. Now the models are showing up in my phone as "past objects" that I had in Unity. The Unity Game view shows the correct model but once it is on my phone it is a different model. I uninstalled and reinstalled the unity remote on my phone, but this didn't help. The "phantom" objects are no longer in my  assets folder or in my program.  Any thoughts? Thank you. 

First Time Install Help

March 13, 2013 - 6:55am #7

Glad to help :-)

First Time Install Help

March 13, 2013 - 6:36am #6

Success! 

First Time Install Help

March 13, 2013 - 6:36am #5

Thank you so much. Worked like a charm the one thing you mentioned that I didn't try was the "Check mark for load data and stones on the AR camera".  I was pulling my hair out and now I am back on track!

First Time Install Help

March 12, 2013 - 2:31pm #4

Ok, first half of the problem solved.

Now, have you checked the following:

  • ARCamera -> Data Set Load Behaviour ->
    • Load Data Set StonesAndChips : is it enabled ? (checkbox must be ticked)
    • Activate: is it enabled ? (checkbox must be ticked)
  • ImageTargetBehaviour
    • DataSet:   is it set ?
    • ImageTarget:   is it set to a target ?

 

 

First Time Install Help

March 12, 2013 - 12:11pm #3

That worked. The game now deploys to my phone. I get no errors. I however cannot get the image target to work. I am using the stock image of rocks.

Any thoughts?

First Time Install Help

March 8, 2013 - 10:28pm #2

Yes, make sure to install Android SDK and NDK as per Dev Guide.

Log in or register to post comments