Fixed bug 1711 - Comment in "manifest" element within android-project/AndroidManifest.xml is the source of troubles
authorSam Lantinga <slouken@libsdl.org>
Fri, 08 Feb 2013 01:12:48 -0800
changeset 6838abd1407af1f9
parent 6837 a69e10925a58
child 6839 2494f667555c
Fixed bug 1711 - Comment in "manifest" element within android-project/AndroidManifest.xml is the source of troubles

ny00@outlook.com

Let me quote the following opening tag from
android-project/AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<!-- Replace org.libsdl.app with the identifier of your game, e.g.
com.gamemaker.game
-->
package="org.libsdl.app"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto">

The comment (with the text "Replace org.libsdl.app with...") seems to be a
cause of troubles. Here are a few examples I've spotted:

1) While using nkd-build from android-ndk-r8d, I receive the following error:

Invalid attribute name: <!-- replace org.libsdl.app with the identifier of your
game, e.g.
com.gamemaker.game
--
/home/ny00123/util/android-ndk-r8d/build/gmsl/__gmsl:512: *** non-numeric
second argument to `wordlist' function: ''. Stop.

2) Repeating this but with android-ndk-r6b (an earlier revision), it reduces to
a warning and actual complication is not halted.

3) Following the instructions in README.android and using Eclipse (from a
recently downloaded ADT Bundle), I cannot seem to be able to create an Android
project from existing sources (one of the SDL test apps for now).
* On a side note, I can't find where I may choose the "Build Target" before
clicking "Finish", but it does not seem to be related to this bug report.
Anyway, following the choice of the project path and a click on "Finish",
nothing seems to occur.
If I rather do so after removing the above comment from AndroidManifest.xml,
though, the project appears on Eclipse as expected once I click on "Finish".
android-project/AndroidManifest.xml
     1.1 --- a/android-project/AndroidManifest.xml	Fri Feb 08 01:04:07 2013 -0800
     1.2 +++ b/android-project/AndroidManifest.xml	Fri Feb 08 01:12:48 2013 -0800
     1.3 @@ -1,8 +1,8 @@
     1.4  <?xml version="1.0" encoding="utf-8"?>
     1.5 +<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
     1.6 +     com.gamemaker.game
     1.7 +-->
     1.8  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     1.9 -    <!-- Replace org.libsdl.app with the identifier of your game, e.g.
    1.10 -         com.gamemaker.game
    1.11 -     -->
    1.12        package="org.libsdl.app"
    1.13        android:versionCode="1"
    1.14        android:versionName="1.0"