aristofanio / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

android:ndk-build (version 3.5.1) failed on Windows 64 bit #368

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and extract android-ndk-r8e-windows-x86_64.zip
2. Unzip attached platform-native.zip (a simple JNI project to build so file)
3. set ANDROID_NDK=d:\programs\android-ndk-r8e
4. mvn install
5. Got the exception

What is the expected output?
The project should be built successfully

What do you see instead?
[ERROR] Error during build: Can not resolve automatically a toolchain
to use. Please specify one.
[morg.apache.maven.plugin.MojoExecutionException: Can not resolve automatically
 a toolchain to use. Please specify one.
        at com.jayway.maven.plugins.android.AndroidNdk.getToolchain(AndroidNdk.j
ava:164)
        at com.jayway.maven.plugins.android.phase05compile.NdkBuildMojo.resolveN
dkStripper(NdkBuildMojo.java:774)
        at com.jayway.maven.plugins.android.phase05compile.NdkBuildMojo.invokeND
KStripper(NdkBuildMojo.java:746)
        at com.jayway.maven.plugins.android.phase05compile.NdkBuildMojo.cleanUp(
NdkBuildMojo.java:525)
        at com.jayway.maven.plugins.android.phase05compile.NdkBuildMojo.execute(
NdkBuildMojo.java:441)

What version of maven-android-plugin are you using?
3.5.1

What are the complete output lines of "mvn -version" on your machine?
Apache Maven 3.0.4 (r1232337; 2012-01-17 15:44:56+0700)
Maven home: d:\programs\apache-maven-3.0.4\bin\..
Java version: 1.6.0_43, vendor: Sun Microsystems Inc.
Java home: d:\programs\jdk1.6.0_43\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Please provide any additional information below.
This problem doesn't happen with the plugin version 3.0.0-alpha-14
AndroidNdk.java seems to have a bug because it just looks for 
windows/bin/arm-linux-androideabi-strip.exe but on my machine it is 
windows-x86_64\bin\arm-linux-androideabi-strip.exe

Original issue reported on code.google.com by hathanht...@gmail.com on 30 Mar 2013 at 2:03

GoogleCodeExporter commented 9 years ago
This will fixed with the following fix 
https://github.com/jreyes/maven-android-plugin/commit/0830a62fb43df1960457082b11
9c542f100677e5

Original comment by jre...@vaporwarecorp.com on 4 Apr 2013 at 3:27

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:20