I have noticed that having the apklib resources and feeding the manifest from the apk via line 624:
```java
    commands.add( "-M" );
    commands.add( androidManifestFile.getAbsolutePath() );
```
will cause the build to fail because it cannot find the resource of the apk