Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The option --rename-manifest-package cannot be used with the aaptexec ant task. It is an option that needs to go straight to the aapt executable, like this;</p> <pre><code>&lt;exec executable="${aapt}" failonerror="true"&gt; &lt;arg value="package" /&gt; &lt;arg value="-f" /&gt; &lt;arg value="-v" /&gt; &lt;arg value="--version-code" /&gt; &lt;arg value="${version.code}" /&gt; &lt;arg value="--debug-mode" /&gt; &lt;arg value="-M" /&gt; &lt;arg path="AndroidManifest.xml" /&gt; &lt;arg value="-A" /&gt; &lt;arg path="${asset.absolute.dir}" /&gt; &lt;arg value="-I" /&gt; &lt;arg path="${android.jar}" /&gt; &lt;arg value="-F" /&gt; &lt;arg path="${out.absolute.dir}/${resource.package.file.name}" /&gt; &lt;arg value="-S" /&gt; &lt;arg path="${resource.absolute.dir}" /&gt; &lt;arg value="--rename-manifest-package" /&gt; &lt;arg value="com.example.pro" /&gt; &lt;/exec&gt; </code></pre> <p>I found no way of editing a file that actually changes the way Eclipse builds. So I put that piece of code in the build.xml, put it in the project root, and built from the console by typing;</p> <pre><code>ant debug </code></pre> <p>And if you depend on any libraries, they need to go into the packaging as well. Look into your default.properties file and you'll see the reference to the lib. Then add that to the rule above, like this;</p> <pre><code>&lt;arg value="-S" /&gt; &lt;arg path="${android.library.reference.1}/res" /&gt; </code></pre> <p>It starts to feel more and more like a hack that can break with any platform SDK update.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload