canalrun Well-Known Member Licensed User Longtime User Nov 20, 2015 #1 Hello, I am testing B4A 5.5 by compiling apps that I have developed with B4A 4.30. With 5.5 I get the error: B4X: B4A version: 5.50 Parsing code. (0.04s) Running custom action. (0.06s) Running custom action. (0.04s) Compiling code. (0.04s) Compiling layouts code. (0.00s) Generating R file. Error AndroidManifest.xml:42: error: Error: String types not allowed (at 'screenOrientation' with value 'locked'). This compiles with 4.30. The offending manifest entry is from Appodeal for their ads server B4X: <activity android:name="com.chartboost.sdk.CBImpressionActivity" android:theme="@android:style/Theme.Translucent" android:screenOrientation="locked" android:excludeFromRecents="true" /> The Android docs seem to say this is OK: http://developer.android.com/guide/topics/manifest/activity-element.html B4X: android:screenOrientation=["unspecified" | "behind" | "landscape" | "portrait" | "reverseLandscape" | "reversePortrait" | "sensorLandscape" | "sensorPortrait" | "userLandscape" | "userPortrait" | "sensor" | "fullSensor" | "nosensor" | "user" | "fullUser" | "locked"] Is this what the B4A error messege is pointing to? Barry.
Hello, I am testing B4A 5.5 by compiling apps that I have developed with B4A 4.30. With 5.5 I get the error: B4X: B4A version: 5.50 Parsing code. (0.04s) Running custom action. (0.06s) Running custom action. (0.04s) Compiling code. (0.04s) Compiling layouts code. (0.00s) Generating R file. Error AndroidManifest.xml:42: error: Error: String types not allowed (at 'screenOrientation' with value 'locked'). This compiles with 4.30. The offending manifest entry is from Appodeal for their ads server B4X: <activity android:name="com.chartboost.sdk.CBImpressionActivity" android:theme="@android:style/Theme.Translucent" android:screenOrientation="locked" android:excludeFromRecents="true" /> The Android docs seem to say this is OK: http://developer.android.com/guide/topics/manifest/activity-element.html B4X: android:screenOrientation=["unspecified" | "behind" | "landscape" | "portrait" | "reverseLandscape" | "reversePortrait" | "sensorLandscape" | "sensorPortrait" | "userLandscape" | "userPortrait" | "sensor" | "fullSensor" | "nosensor" | "user" | "fullUser" | "locked"] Is this what the B4A error messege is pointing to? Barry.
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2015 #2 Note that the manifest file is handled by Android SDK. Make sure to use android.jar from platform 18+ if you want to use the locked value. Upvote 0
Note that the manifest file is handled by Android SDK. Make sure to use android.jar from platform 18+ if you want to use the locked value.