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>
Try Deleting -- >> |screenSize|sma llestScreenSize|
|screenSize|sma llestScreenSize| needs API Level 13
http://developer.android.com/guide/topics/manifest/activity-element.html#config