Log in or register to post comments

Android project crashes

March 18, 2014 - 8:01am #1

Hi,

I created simple Vuforia Unity project. When I build it for the Android platform, it works.

I want to get Android project to develop it in Eclipse. I have gone through article

https://developer.vuforia.com/resources/dev-guide/extending-unity-android-activity-and-adding-custom-views-eclipse

Unfortunately, app crashes.

In LogCat appears the message:

FATAL EXCEPTION: main

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{xxxx}: java.lang.ClassNotFoundException.

Could someone help me, please?

Android project crashes

March 19, 2014 - 6:09am #4

In subdirectory "/raw/QCAR" I have only one file named "unity.txt", that includes only word:

"4.3.4"

Yes, this is normal and expected, if you have not included any Dataset in your Unity project.

 

 

Android project crashes

March 19, 2014 - 4:17am #3

Thanks for your response.

I  tried another approach. Earlier I used Unity 4.2.2, now I've decided to change Unity to 4.3.4.

Currently, when I create Vuforia Unity project and I build it for the Android platform, it works. Furthermore, when I export Vuforia Unity project and later I import and run it in Eclipse, it works too.

I still have the problem, when I go through the article:

https://developer.vuforia.com/resources/dev-guide/extending-unity-android-activity-and-adding-custom-views-eclipse

One section from that article, I have a doubt is

Copy the "/QCAR" folder (this should contain your Dataset .XML/.DAT files) from the "/raw" directory of the "QCARUnity"  project to the "/assets" folder of the "QCARJava" project.

In subdirectory "/raw/QCAR" I have only one file named "unity.txt", that includes only word:

"4.3.4"

Is it expected?

Could someone give me any directions?

Android project crashes

March 18, 2014 - 8:40am #2

See the section where it says:

Go to the Project > Properties > Java Build Path Order and Export tab...

You might need to export a few more JARs (e.g. Vuforia.jar or Android jars).. although when testing this, it was not necessary in my case.

 

 

Log in or register to post comments