Note that there are some explanatory texts on larger screens.

plurals
  1. POAapt on 32bit machine is throwing: Illegal instruction (core dumped)
    text
    copied!<p>Extending my previous question <a href="https://stackoverflow.com/questions/18060485/aapt-is-not-working-correctly-cannot-generate-r-ids-on-fresh-project">Aapt is not working correctly - cannot generate R IDs on fresh project</a></p> <p>I installed fresh Ubuntu Server 12.04 on 32bit machine, after that I downloaded Android SDK and upadted. Then I created new project from command line:</p> <pre><code>gyver@Gyver:~/tmp$ android create project -t android-17 -p test -k com.example.test -a HomeActivity </code></pre> <p>No problems at this point. Then I tried to use Ant to compile:</p> <pre><code>gyver@Gyver:~/tmp/test$ ant clean debug install Buildfile: /home/gyver/tmp/test/build.xml -check-env: [checkenv] Android SDK Tools Revision 22.0.5 [checkenv] Installed at /opt/android-sdk -setup: [echo] Project Name: HomeActivity [gettype] Project Type: Application -pre-clean: clean: [delete] Deleting directory /home/gyver/tmp/test/bin [getlibpath] Library dependencies: [getlibpath] No Libraries [subant] No sub-builds to iterate on -set-mode-check: -set-debug-files: -check-env: [checkenv] Android SDK Tools Revision 22.0.5 [checkenv] Installed at /opt/android-sdk -setup: [echo] Project Name: HomeActivity [gettype] Project Type: Application -set-debug-mode: -debug-obfuscation-check: -pre-build: -build-setup: [getbuildtools] Using latest Build Tools: 18.0.1 [echo] Resolving Build Target for HomeActivity... [gettarget] Project Target: Android 4.2.2 [gettarget] API level: 17 [gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions. [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: /home/gyver/tmp/test/bin [mkdir] Created dir: /home/gyver/tmp/test/bin/res [mkdir] Created dir: /home/gyver/tmp/test/gen [mkdir] Created dir: /home/gyver/tmp/test/bin/classes [mkdir] Created dir: /home/gyver/tmp/test/bin/dexedLibs [echo] ---------- [echo] Resolving Dependencies for HomeActivity... [dependency] Ordered libraries: [echo] ---------- [echo] Building Libraries with 'debug'... [subant] No sub-builds to iterate on -code-gen: [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [renderscript] No RenderScript files to compile. [echo] ---------- [echo] Handling Resources... [aapt] Generating resource IDs... BUILD FAILED /opt/android-sdk/tools/ant/build.xml:649: The following error occurred while executing this line: /opt/android-sdk/tools/ant/build.xml:690: null returned: 132 Total time: 3 seconds gyver@Gyver:~/tmp/test$ </code></pre> <p>An error, at this point it is not clear what's wrong. I looked into build.xml to find out that Ant is calling <code>aapt</code>, so I tried start it directly</p> <pre><code>/opt/android-sdk/build-tools/18.0.1/aapt package -f -m -M /home/gyver/tmp/test/bin/AndroidManifest.xml -S /home/gyver/tmp/test/bin/res -S /home/gyver/tmp/test/res -I /opt/android-sdk/platforms/android-17/android.jar -J /home/gyver/tmp/test/gen --generate-dependencies -G /home/gyver/tmp/test/bin/proguard.txt </code></pre> <p>With result</p> <pre><code>Illegal instruction (core dumped) </code></pre> <p>It there a way to fix it ? Aapt seems fine on 64bit machines, this 32bit server is the only case I cannot build a project</p>
 

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