Error parsing manifest script after update to v2.5

ma435

Member
Licensed User
Longtime User
Hi,
This is my manifest:

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>
   )
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.

AddActivityText(main,
   <intent-filter>
        <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
    </intent-filter>
    <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
        android:resource="@xml/device_filter" />)

And this is compiler error:

Parsing code. 0.06
Compiling code. Error
Error parsing manifest script:
Line = 15, Word = (

Can somebody help me to find the error? :BangHead:

Thenk you
 

ma435

Member
Licensed User
Longtime User
Hi Erel,

This morning I have overwritten the manifest, following your post:

http://www.b4x.com/forum/additional-libraries-classes-official-updates/24835-usbserial-library-supports-ftdi-arduinos-other-usb-serial-devices.html#post143809


Now there aren't any errors in the manifest but I cannot connect to the FTDI USB device:
Log: Error opening USB port

Before the update to v2.5 I had no problems

I have tried to use also the project (UsbSerialExample.zip) attached to the post above but the Log gives me back: Error opening USB port.
 
Upvote 0

ma435

Member
Licensed User
Longtime User
Hi Erel,
I have done the following operations:

- I compiled my project but it didn't work.
- I compiled UsbSerialExample project but it didn't work.
- I have restarted PC
- I have restarted tablets (two tablets)
- Now on the first tablet it works but on the second tablet it doesn't work and I don't see a permission dialog when I attach the USB device.

:BangHead:

Are there any temporary files to delete, when I update version?
 
Upvote 0

ma435

Member
Licensed User
Longtime User
Upvote 0

quimacama

Member
Licensed User
Longtime User
Error parsing manifest script: Line = 12, Word = (

Hi Erel,
I have the same problem, but in my project don't use the usb.
I have reinstalled the version 2.20 and the project has been compiled without problems. I have once again put the 2.50 and follows the error.


I use the libraries: Phone, RandomAccessFile, Reflection, SQL and TweenEngine with the Animated Sliding Menu by NJude. I think the problem is in this last, but I don't understand why...
Any solution?
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User

Open your manifest and take a look, sometimes an illegal character makes its way to the manifest.
 
Upvote 0

quimacama

Member
Licensed User
Longtime User
I have no characters rare in manifest

I have found that the error has already gives me to compile the demo project AnimatedSlidingMenu.b4a. In version 2.2 I have no problem, its in 2.5

Parsing code. 0.06
Compiling code. Error
Error parsing manifest script:
Line = 12, Word = (



This is my manifest:


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

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="18"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application
android:hardwareAccelerated="true"
android:icon="@drawable/icon"
android:label="Simon Grana">
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".main"
android:label="Simon Grana"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".simon"
android:label="Simon Grana"
android:screenOrientation="portrait">
</activity>
</application>
</manifest>
 
Upvote 0

quimacama

Member
Licensed User
Longtime User
I found the solution

Searching in the Forum I find this

Thanks for all NJDude, I think you should change the zip with the correction :sign0148:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…