gavinpugh / vs-android

Integrated development of Android NDK C/C++ software with Microsoft Visual Studio.
Other
120 stars 34 forks source link

ANTBUILD : dx error : No suitable Java found. - Windows 7 specific #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See comments on this page:
https://code.google.com/p/vs-android/wiki/Troubleshooting

Workaround for now is to edit the "find_java.bat" file to force the "java_exe" 
path.

I'm unable to reproduce this issue on my Windows 8.1 machine. Others have also 
reported Windows 8 doesn't suffer from this issue too.

I'd gladly accept a patch if a user running Windows 7 can diagnose and fix the 
issue.

Original issue reported on code.google.com by gavin.dj.pugh on 9 Feb 2015 at 8:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This appears to be the same VCTracker 32 vs 64-bit issue as: 
(https://code.google.com/p/vs-android/issues/detail?id=135)

There's two flavours of the find_java exe. One 32-bit and one 64-bit. I believe 
previously the Android SDK didn't do this, and there was just one 32-bit exe 
used to find the correct java installation. This is an issue that's only been 
noted in the last few weeks.

Original comment by gavin.dj.pugh on 16 Feb 2015 at 3:42

crazii commented 9 years ago

I was building project on Win7 x64, and it looks like a VCTrackter 32/64 (find_java64) problem. My workaround is forcing build tool version from 21.1.2 to older version(18.1.1). in file project.properties: target=android-18 sdk.buildtools=18.1.1