1

After pointing to the latest manifest-merger.jar provided in the Android M preview and updating my apps to

<uses-sdk targetSdkVersion='MNC'>
<uses-sdk minSdkVersion='MNC'>

when attempting to use the manifest merger on these apps, I get the following error:

EXEC : error : [C:\MyApp\AndroidManifest.xml:3] Failed to parse <uses-sdk targetSdkVersion='MNC'>: must be an integer number or codename.

I am using the same command I was for the previous manifest-merger.jar and it used to work fine.

Update1: adding command

"F:\bin\JDK.1.7.0.51\bin\java.exe" -classpath "F:\android-MNC-sdk\tools\lib\sdklib.jar;F:\android-MNC-sdk\tools\lib\manifest-merger.jar"  com.android.manifmerger.Main merge --out foo.xml --main app1\AndroidManifest.xml --libs appBase\AndroidManifest.xml 
Reuben Tanner
  • 5,229
  • 3
  • 31
  • 46
  • What Gradle for Android plugin version are you using, assuming that you are using Android Studio? This is the `classpath` line in your top-level `build.gradle` file. – CommonsWare Jun 23 '15 at 22:02
  • I'm using a company specific build tool and i'm invoking manifest-merger.jar by itself. – Reuben Tanner Jun 23 '15 at 22:13

1 Answers1

0

Oddly enough, even though it produced this error, it was actually also producing the merged manifest. Definite bug with the 24.3.3 version of manifest-merger.jar

Reported here: https://code.google.com/p/android-developer-preview/issues/detail?id=2487

Reuben Tanner
  • 5,229
  • 3
  • 31
  • 46