Log in or register to post comments

Need help in including Unity project as a library in eclipse.

April 18, 2012 - 3:20am #1

Hello folks,
I tried to do a simple unity eclipse integration and im facing some issues.Since im new to unity , i need some help here.
I followed the steps giving here in unity3d.com/support/documentation/Manual/Android-Integrating Unity With Eclipse.html

1)i created a unity project with one cube with the built settings as follows
i)ARM v6 with vfp
ii)Android 2.2 Froyo
[i ran the app in device and also checked .It works fine]

2)Created a new android project with "Staging area " folder as the source .I selected build target as Android 2.2 and create.After creation i get to see few errors in the AndroidManifest file.

    error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard|keyboardHidden|locale|mnc|mcc| navigation|orientation|screenLayout|screenSize|sma llestScreenSize|uiMode|touchscreen'). AndroidManifest.xml /unityAsLibrary line 5 Android AAPT Problem
    error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard|keyboardHidden|locale|mnc|mcc| navigation|orientation|screenLayout|screenSize|sma llestScreenSize|uiMode|touchscreen'). AndroidManifest.xml /unityAsLibrary line 11 Android AAPT Problem
    error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard|keyboardHidden|locale|mnc|mcc| navigation|orientation|screenLayout|screenSize|sma llestScreenSize|uiMode|touchscreen'). AndroidManifest.xml /unityAsLibrary line 13 Android AAPT Problem
    error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard|keyboardHidden|locale|mnc|mcc| navigation|orientation|screenLayout|screenSize|sma llestScreenSize|uiMode|touchscreen'). AndroidManifest.xml /unityAsLibrary line 17 Android AAPT Problem
    error: No resource identifier found for attribute 'xlargeScreens' in package 'android' AndroidManifest.xml /unityAsLibrary line 3 Android AAPT Problem

I have also pasted the AndroidManifest that got created. Can you please tell me what went wrong here ....Thank you

AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.ingage.test" android:versionName="1.0" android:versionCode="1">
  <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
  <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
    <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
    </activity>
    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
      <meta-data android:name="android.app.lib_name" android:value="unity" />
      <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
    </activity>
    <activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
    </activity>
  </application>
  <uses-feature android:glEsVersion="0x00020000" />
  <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" />
</manifest>

Need help in including Unity project as a library in eclipse.

December 2, 2015 - 7:15am #34

Hello,

         I am totally new to Vuforia and unity. I am getting the following error(not a warning) :

" Multiple annotations found at this line:

- Avoid hardcoding the debug mode; leaving it out allows debug and release builds to

automatically assign one

- Should explicitly set android:allowBackup to true or false (it's true by default, and that can

have some security implications for the application's data) "

in the following line:

 

" <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:allowBackup="false" android:banner="@drawable/app_banner" > "

 

Any assistance would be highly appreciated.

Thank you.

 

 

 

Need help in including Unity project as a library in eclipse.

September 10, 2013 - 12:51pm #33

Hi 

I exported the project from unity 4D to Android project but when i run it iget this error 

 

Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;
 
I did change the Project -> properties to include the Android 4.2.2 and Android Dependencies but i still not able to run it

Need help in including Unity project as a library in eclipse.

January 28, 2013 - 3:17am #32

Thanks suppenhuhn for the clarifications!

Need help in including Unity project as a library in eclipse.

January 28, 2013 - 3:01am #31

I had these errors also - then i deleted the whole project and build it up new. This time it works - i strongly recommend to keep the right order of the steps explained in the how-to thread. Then it should work, the only step i had to add was at project Properties > Java Build Path > select Order and Export tab and tick (enable the checkboxes) for the following:

  1. Android 2.2
  2. Android Dependencies
  3. classes.jar

 

P.S

I had also export-troubles because of my Eclipse- Project Name. My first Project Name was "Eclipse Project" with an empty space - this causes some errors while compiling the project. The new project was named "EclipseProject" now the errors didn't happen.

 

 

Need help in including Unity project as a library in eclipse.

January 28, 2013 - 2:41am #30

Maybe suppenhum can be help here with some precisations ? (something to do with the libs folder..)

 

Need help in including Unity project as a library in eclipse.

January 26, 2013 - 5:10pm #29

what was the fix for the mulitple dex errors?

 

[2013-01-27 13:53:41 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;

[2013-01-27 13:53:41 - QCARJava] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;

nothing i do  can seem to get fix them, including the suggestions in this thread. this is with a brand new project created from a unity 4.x build following the FAQ.

Need help in including Unity project as a library in eclipse.

January 24, 2013 - 1:06am #28

You're welcome. Just ping me again if you need more help.

Need help in including Unity project as a library in eclipse.

January 24, 2013 - 1:00am #27

Ok - thank you !!

This is a foolproof instruction which  i need, thx again.

 

I'll be back ;-)

Need help in including Unity project as a library in eclipse.

January 24, 2013 - 12:41am #26

Hi, if you want to update the Eclipse project with your latest updates to the Unity project, you need to check these steps:

  • you need to copy again (overwriting the old one) the “/assets” folder from the Unity project ("StagingArea” directory) to the “QCARJava” project folder;
  • about copying QCAR.jar and QCARUnityPlayer.jar: you don't need to do this step any more (because those JAR files do not change, unless you upgrade your Vuforia version to a newer release; so in general no need to update them);
  • you may need to copy again the “/QCAR” folder (which contains your Dataset .XML/.DAT files) from the “/raw” directory of the “StagingArea” directory of your Unity project to the “/assets” folder of the “QCARJava” project (but only if you have changed your DataSet files, otherwise you don't need to to this step)
  • The AndroidManifest.xml file will not change, so you can keep it as it is (as you correctly guessed)

That should be what you need.

 

 

Need help in including Unity project as a library in eclipse.

January 24, 2013 - 12:16am #25

Yeah, I checked these JARs now it's running! Thank you very much!!!! :-)

 

But one last question in advance:

Let's say i develop my JAVA project with additional views, images etc. based on that QCAR library project. What if i make changes to my Unity3D scene later and export it again to a APK file. Is it possible to "update" the QCAR library and JAVA project with the new files.

if yes do i have to copy / move the new files of the "new StagingAera" folder into the QCAR Library project and the JAVA project as i did at the beginning - and leave the Manifest as it is ?

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 8:34am #24

Hi, forgot to mention; the crash you get is due to the fact that the APK does not contain some compiled files from QCAR and Unity;

to fix that, go to the project Properties > Java Build Path > select Order and Export tab and tick (enable the checkboxes) for the following:

  1. Android 2.2
  2. Android Dependencies
  3. classes.jar

That will tell Eclipse to embed those jars into the APK.

This should fix the problem !

(BTW: please confirm that it is fixed for you, so I will update the Post in the FAQ to include this extra instruction, as it is a bit implicit in the guide).

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 8:24am #23

Sorry but it still crashes. Tested on Galaxy Phone 2.3.3 and Galaxy Tab 10.1 von Android 4..any ideas?

I have still 6 warnings:

Description    Resource    Path    Location    Type
<uses-feature> tag appears after <application> tag    AndroidManifest.xml    /QCARPlayerProxyActivity    line 28    Android Lint Problem
<uses-feature> tag appears after <application> tag    AndroidManifest.xml    /Unity2Eclipse    line 28    Android Lint Problem
Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one    AndroidManifest.xml    /QCARPlayerProxyActivity    line 12    Android Lint Problem
Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one    AndroidManifest.xml    /Unity2Eclipse    line 12    Android Lint Problem
Should explicitly set android:allowBackup to true or false (it's true by default, and that can have some security implications for the application's data)    AndroidManifest.xml    /QCARPlayerProxyActivity    line 12    Android Lint Problem
Should explicitly set android:allowBackup to true or false (it's true by default, and that can have some security implications for the application's data)    AndroidManifest.xml    /Unity2Eclipse    line 12    Android Lint Problem
 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 8:02am #22

If i set them all to 2.2 ( as i did ) - does it only run on 2.2 ?!?

No, it will run on any device supporting 2.2 or above, no need to worry (that's not the problem, I also run with target 2.2 on ICS devices for instance).

 

Concerning the crash, I occasionally experience the same issue, but if you try again it should work (try opening/closing Eclipse, refresh your projects and buil/run again...)

 

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 8:00am #21

I've created manually in the Windows Explorer a libs folder in the Libraryfolder now it builds the App. But it crashes  immediately when starting on the Phone.

One further ( maybe stupid ) question is:

I set in Unity the Target API to 2.2 - In the Eclipseproject there are 3 different kinds of Target APIs i have to set:

1. Minimum API

2. Target API

3. Compiling API

If i set them all to 2.2 ( as i did ) - does it only run on 2.2 ?!? Because the first time i leave compiling API to latest, and i got in the res folder a few subfolders with errors / warnings on it.

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 7:46am #20

Hmm quiet strange...now everything worked fine but when i test it with -> run as application this error appears:

Description    Resource    Path    Location    Type
Error generating final archive: C:\Users\Robert\workspace\QCARPlayerProxyActivity\libs does not exist    Unity2Eclipse        Unknown    Android Packaging Problem
 

This is the  folder of the Library Project. I moved the ASSETS and LIBS folders of this into the Android Project folder as descibed in the How-To-Do Manual.

But anyway in this Library folder is a new libs folder created by Eclipse, so it exists

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 6:14am #19

Ok - same base. Unity and Eclipse are in the same version, and in Unity Target is API Level 8. The unity scene is the ImageTarget Sample - only the Augmented Scene. Splash, Loading and About was deleted.

I'll keep you updated while the procedure.

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 5:42am #18

Hi, I'm back from my tests; so, I was able to build it successfully both with Unity 3.5.7 and Unity 4.0.1;

I would suggest to try with a fresh new project, as your current project might be in a "messed" state after all those little edits

(e.g. create an ImageTarget-like project in Unity and then follow the whole export-to-eclipse procedure);

make sure to check carefully that you follow all the steps reported in here:

https://developer.vuforia.com/forum/faq/unity-how-can-i-extend-unitys-android-activity

 

If you have any doubt at any of the steps described in the guide, just let me know, I can clarify/detail each step if something is not fully clear.

 

In particular, pay attention to:

- use same API level in the Unity Player Settings and in your Eclipse project (for info, I tested using Android "Froyo" 2.2, so in Android manifest I have minSDK=8, if it can help)

- Make sure that the Bundle Identifier in the Player Settings is exactly the same as the package name of your Eclipse project 

 

For info, I am using Eclipse Juno (but this should not really matter, as in the past we also tested this with older versions of Eclipse),

and I am using Unity 4.0.1 (which is the latest version available for download today, January 23 2013)

 

I hope this helps.

 

 

 

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 3:02am #17

No, no  that worked fine - Eclipse build the new BIN folder automatically well.

I just made a backup of the old folder if it will be needed again.

First error was a missing Manifest.xml -> i copied the Manifest of the UnityToEclipse folder into the automatically created bin folder

After that got still thes 2 errors:

[2013-01-23 11:59:09 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;
[2013-01-23 11:59:09 - UnityToEclipse] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;
 

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 2:41am #16

The bin folder should be generated automatically by Eclipse (can you check that you have the "Build Automatically" enabled in your Project settings (go to the "Project" menu in the Eclipse menu bar); you can also close and restart Eclipse...  (sometimes Eclipse is a bit "lazy" in udpating...)

Meanwhile I'm going through the process with unity 4 on my side.

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 2:34am #15

Bin folder was deleted and rebuild by Eclipse. These Errors shown up:

[2013-01-23 11:30:11 - UnityToEclipse] WARNING: unable to write jarlist cache file C:\Users\Robert\workspace\UnityToEclipse\bin\jarlist.cache
[2013-01-23 11:30:39 - UnityToEclipse] C:\Users\Robert\workspace\UnityToEclipse\bin\AndroidManifest.xml: error: Unable to open file for read: No such file or directory
[2013-01-23 11:30:45 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;
[2013-01-23 11:30:45 - UnityToEclipse] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;

 

I made a backup from the origin BIN folder if it's needed again.

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 2:24am #14

OK, thanks for the update; can you make one last quick test (then I'll try to reproduce it here);

removing the /bin folder from your Eclipse project (and have Eclipse rebuild it automatically) and see if it makes any difference

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 2:17am #13

I made the changes in line 33 as you wrote. I still got following error:

[2013-01-23 11:14:52 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;
[2013-01-23 11:14:52 - UnityToEclipse] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 2:11am #12

Hi, in the AndroidManifest you should replace:

android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity"

with

android:name="com.myCompany.UnityToEclipse.MainActivity"

Let me know if that solves/improves the situation.

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 1:41am #11

I changed the MainActivity Class extends and disabled the setContentView(R.layout.main) as following ( line 8 and 13 ):

 

package com.myCompany.UnityToEclipse;

import android.os.Bundle;
import android.view.Menu;

import com.qualcomm.QCARUnityPlayer.QCARPlayerActivity;

public class MainActivity extends QCARPlayerActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// setContentView(R.layout.activity_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}

 

 

My Errors are following:

[2013-01-23 10:27:22 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;
[2013-01-23 10:27:22 - UnityToEclipse] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/BuildConfig;

 

 

I'm not sure what to change about the Main Activity in the AndroidManifest.xml exactly .My AndroidManifest is still this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.myCompany.UnityToEclipse"
    android:installLocation="preferExternal"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <uses-feature android:name="android.hardware.camera" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true" />

    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

    <application
        android:debuggable="false"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        <activity
            android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity"
            android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerActivity"
            android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity"
            android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <meta-data
                android:name="android.app.lib_name"
                android:value="unity" />
            <meta-data
                android:name="unityplayer.ForwardNativeEventsToDalvik"
                android:value="false" />
        </activity>
        <activity
            android:name="com.unity3d.player.VideoPlayer"
            android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
        </activity>
    </application>

    <uses-feature android:glEsVersion="0x00020000" />
    <uses-feature
        android:name="android.hardware.camera.autofocus"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.camera.front"
        android:required="false" />

</manifest><!-- android:installLocation="preferExternal" -->

 

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 1:09am #10

Nice!

so, if that problem is fixed,  what is your remaining error then (can you paste the error message here) ?

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 1:06am #9

YEAH, that would be GREAT ! And keep in mind -> I'm no coder ;-)

I figured out that the Android Manifest error line 2 was to add the "android:" to the installLocation attribute , like this:

android:installLocation="preferExternal"

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 12:47am #8

OK, so I will need to test that on Unity 4.0; I will udate you as soon asI have some results.

 

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 12:34am #7

I didn't tried that with Unity 3.5.7 because we upgraded it a few month ago.

Need help in including Unity project as a library in eclipse.

January 23, 2013 - 12:27am #6

Hi suppenhum,

I understand from your other post (https://developer.vuforia.com/forum/issues-and-bugs/library-libqcarso-could-not-be-loaded#comment-2020588) that this error occurs using Unity 4.

Have you tried in Unity 3.5.7 (as I tested the eclipse export solution in that version and it works); do you also get problems with 3.5.7?

 

Need help in including Unity project as a library in eclipse.

January 22, 2013 - 11:54pm #5

Hi Alessandro ... i hope you found it, and sorry for bothering you that much  ;-)

 

I got following error:

Description    Resource    Path    Location    Type
Attribute is missing the Android namespace prefix    AndroidManifest.xml    /UnityToEclipse    line 2    Android Lint Problem
 

This line is:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myCompany.UnityToEclipse" installLocation="preferExternal" android:versionName="1.0" android:versionCode="1">

 

Any suggestions ?

Re: Need help in including Unity project as a library in eclipse

April 18, 2012 - 6:49am #4

I followed the guide step by step and things went fine until i had to import unityPlayerActivity.

import com.unity3d.player.UnityPlayerActivity;

import android.app.Activity;
import android.os.Bundle;

public class UnityInAndroidActivity extends UnityPlayerActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
    }
}

After compiling and runnin it in the device the app crashes.. and here is the log..

04-18 19:06:20.655: W/dalvikvm(5830): Unable to resolve superclass of Lcom/ingage/test/UnityInAndroidActivity; (11)
04-18 19:06:20.655: W/dalvikvm(5830): Link of class 'Lcom/ingage/test/UnityInAndroidActivity;' failed
04-18 19:06:20.665: W/dalvikvm(5830): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
04-18 19:06:20.685: E/AndroidRuntime(5830): FATAL EXCEPTION: main
04-18 19:06:20.685: E/AndroidRuntime(5830): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ingage.test/com.ingage.test.UnityInAndroidActivity}: java.lang.ClassNotFoundException: com.ingage.test.UnityInAndroidActivity in loader dalvik.system.PathClassLoader[/data/app/com.ingage.test-1.apk]
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2591)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.app.ActivityThread.access$2300(ActivityThread.java:126)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.os.Looper.loop(Looper.java:123)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.app.ActivityThread.main(ActivityThread.java:4633)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at java.lang.reflect.Method.invokeNative(Native Method)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at java.lang.reflect.Method.invoke(Method.java:521)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at dalvik.system.NativeStart.main(Native Method)
04-18 19:06:20.685: E/AndroidRuntime(5830): Caused by: java.lang.ClassNotFoundException: com.ingage.test.UnityInAndroidActivity in loader dalvik.system.PathClassLoader[/data/app/com.ingage.test-1.apk]
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2583)
04-18 19:06:20.685: E/AndroidRuntime(5830): 	... 11 more

i don understand why it is not able to identlfy the class..
Pls guide me thru

Re: Need help in including Unity project as a library in eclipse

April 18, 2012 - 5:56am #3

Hey "mydoongs",
your suggestion dint go wrong :)
Thanks a lot man

-Elixir.bash

Re: Need help in including Unity project as a library in eclipse

April 18, 2012 - 3:46am #2

Try Deleting -- >> |screenSize|sma llestScreenSize|

|screenSize|sma llestScreenSize| needs API Level 13

http://developer.android.com/guide/topics/manifest/activity-element.html#config

Quote:






















Log in or register to post comments