Log in or register to post comments

Vuforia tutorial not working ! Extending Unity Android Activity and Adding Custom Views in Eclipse

December 6, 2013 - 1:01am #1
Hello,
i'm try to get this tutorial work :
but in the step 6 and 7 the imported project (QCARUnity) show errors in manifest and the whole application won't work. please help

Vuforia tutorial not working ! Extending Unity Android Activity

June 23, 2015 - 3:19am #8

Vuforia tutorial not working ! Extending Unity Android Activity

December 8, 2013 - 12:15am #7

Have you esported the jar, as suggested at the end of the article ?

Tip: if you get ClassDefNotFound (or similar) runtime errors, you might need to perform these extra steps:

  1. Go to the Project > Properties > Java Build Path Order and Export tab, and check (tick) theclasses.jarAndroid x.y and Android Dependencies items.

  2. Apply and rebuild the probject.

Vuforia tutorial not working ! Extending Unity Android Activity

December 6, 2013 - 10:09am #6

Thank you for the solution you was right :)

now when i try to run on the divice i get this error :

java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.qualcomm.QCARUnityPlayer/com.qualcomm.QCARUnityPlayer.MainActivity}: java.lang.ClassNotFoundException: com.qualcomm.QCARUnityPlayer.MainActivity.
 
(i have the MainActivity declared in the manifest file as mentionned in the tutorial)
 
To be more clear:
i tried with an other activity  test that extends from activity and it lunched normally but after i changed the extend from activity to
QCARPlayerActivity i get the error again
 

Vuforia tutorial not working ! Extending Unity Android Activity

December 6, 2013 - 6:38am #5

all right. This is because you are building on an Android version prior to 4.0 (e.g. 2.2). You could get rid of the error by building on Android 4.x,

or you can otherwise simply remove this part of the string:

screenSize|smallestScreenSize

Then it should be ok.

 

Vuforia tutorial not working ! Extending Unity Android Activity

December 6, 2013 - 5:27am #4

hello,

there is the error  it's is showed in this line (4times)

    <activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

error :String types not allowed at ('configChanges="fontScale|keyboard|...)

 

 

 

Vuforia tutorial not working ! Extending Unity Android Activity

December 6, 2013 - 5:17am #3

These are the errors that Fares is facing :

Vuforia tutorial not working ! Extending Unity Android Activity

December 6, 2013 - 3:29am #2

Can you show the actual error messages that you see (maybe by attaching a screenshot) ?

 

Log in or register to post comments