Android Question Help Compiler

dibesw

Active Member
Licensed User
Longtime User
HI,
i put GpsMap into may app and now give an arrore when compile:

ba41.jpg


This is manifest:

Hi have restart app and ADB Server many times.

This is manifest file:

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<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.
AddManifestText( <permission
          android:name="$PACKAGE$.permission.MAPS_RECEIVE"
          android:protectionLevel="signature"/>
      <uses-feature android:glEsVersion="0x00020000" android:required="true"/>)
 
AddApplicationText(<meta-data
    android:name="com.google.android.maps.v2.API_KEY"
    android:value="AIzaSyAEGf9y_____________8wKk3y3EuKs"/>)

If I leave only default text, compiler give not error.
Why.?
Where is the error?

THANKS!
 

eps

Expert
Licensed User
Longtime User
That's not the manifest file itself... I would look in the Manifest.xml file in the directory for your project and in the Objects directory.

As it's XML it's going to be a missing or extra bracket or section not closed off, for instance.. Maybe open it up in Notpad++ and select XML as the language? That might give you a clue...

Have you looked here : http://www.b4x.com/android/forum/threads/manifest-editor.13818/#post-78136

and here : http://developer.android.com/guide/topics/manifest/manifest-intro.html

?
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Maybe remove one of the two statements you added to at least narrow it down.

I think it's the first one that is giving you problems, as you seem to have two items in there...
 
Upvote 0

eps

Expert
Licensed User
Longtime User
What version of B4A are you using?

I added the extra text you indicated and it worked for me on B4A 3.2

ETA : Sorry I thought it was a Compile issue. With your two extra items and installing on a device (HTC One) it installs fine for me - so maybe it's an issue with the AVD you have set up.. Might be a bit of an old one?
 
Upvote 0

dibesw

Active Member
Licensed User
Longtime User
I'll explain it all:
My B4A version is 2.52.
Compiler give error just I leave first statement after default.
I have tested GoogleMaps lib in another app (that have this manifest file!) and its works well.
My AndroidManifest.xml:

ba42.jpg


When I install to real device it give an error "Error during package parsing"
 
Upvote 0

dibesw

Active Member
Licensed User
Longtime User
Why not? Advise me to change? I thought about this. However, the problem may not be that
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Well I used 3.2 (still an older version, I like keeping current version - 1) and then installed it on to a device, no problem.
 
Upvote 0

dibesw

Active Member
Licensed User
Longtime User
Found it!
The problem is in package name: tecnomobile.tripdent does not work;
ba4.tripdent works.
Thanks!
 
Upvote 0
Top