I am right now configuring ndk in eclipse on mac lion os. i downloaded Eclipse 3.5, android sdk & ndk r7b. can anyone give me the procedure to configure the NDK in eclipse for native android application development?
It's a little tricky to set up right on OSX but I've done it (on Lion, not sure about others) so it is possible.
Download the OSX bzip here and follow the instructions 'Installing the NDK' and 'Getting Started with the NDK'. From there try to build the the hello-jni sample, found here. I installed the APK it produced on the android emulator and it worked fine, same for some of the other samples.
I did it without using eclipse, but from what I understand the eclipse plugin is just a wrapper for the android and adb binaries.
Related
When I'm trying to install android studio on my 32 bit Windows 10 computer, it says that an error occurred while trying to compute required packages. What should I do?
Solution:
Download the Java SE Developement Kit (Directdownload for 32Bit) and install it.
After that you can access Android Studio on it's site choosing the No .exe installer version:
Extract it and go into the bin folder and execute studio.exe (this is for 32bit).
PS: The studio64.exe is ONLY recommend for 64bit machines.
This will work! I bet you have installed the wrong Android Studio Version. So uninstall your current Android studio and follow the steps above. Cheers.
I have an old mac mini(osx 10.6.8).My laptop was damaged So I need to use it. So i need to install android studio and java in it for development work. But couldnt install java 1.8 and android studo 2.3. I also couldnt find any working older version links for android studio. Is there any way I can do android development in the mentioned setup?
How can i include the android code developed on linux platform into the eclipse on windows platform so that i can debug and start the emulator which will emulate same as target behaviour.
To be further precise this android code is having application as well as JNI and c/c++ code
Just copy the whole project folder to windows, and import the project into Eclipse. Then create a emulator which is as same as the one on Linux platform. After that, You can run or debug your app on the emulator without any problem.
I am newbie on Phonegap, I am installing phonegap on my laptop which is having Windows 7 os installed I want to install it for android.
I have installed JRE 7 also jdk1.7.0_25 and Ant also.
I done with changes in Windows Script Host also (WSH).
Also I had set the all environment variables also.
I am following this link but when I try to create a new project it is giving me
'cscript' is not recognized as an internal or external command,
operable program or batch file.
Please help me. and if you need any screen shot or anything pleas ask me i can provide.
You might want to check out my blogpost "A guide to PhoneGap on Windows" about this.
The tools below are at least required for PhoneGap 2.9.0.
Android SDK tools
Java JDK 6 or 7
Integrated Development Environment (IDE): Eclipse and Eclipse Plugin OR Android Studio (still Beta!)
Cordova PhoneGap
The tools below are at least required for PhoneGap 3.0.0.
Android SDK tools
Java JDK 6 or 7
Integrated Development Environment (IDE): Eclipse and Eclipse Plugin OR Android Studio (still Beta!)
Apache Ant
GitHub
Node.js
Cordova PhoneGap
Hope it will work out for you.
as the question stated. I am planning to copy android SDK library from my microsoft windows pc to my new Mac PC. Should I download the mac version of sdk or copying the directory from windows to mac is enough ?
The SDK (Java part) is identical, but the NDK (which may also be called a part of the SDK) contains prebuilt Windows/Linux/Mac versions of the GCC compiler to produce ARM/MIPS/x86 Android executables.
To compile native native code on Mac you need different prebuilt GCC toolchain (included in NDK). That part certainly cannot be copied from Windows.
To build Java just make sure your Mac is not too old (like PowerPC) and support the Android SDK and official JDK to run Ant build scripts.
The direct copying may have one problem: the CLASSPATH variable will point to your old Windows paths, not the Mac paths.
There's no big difference, but you will need to download the SDK again. This is because not everything is Java, some of it is native code and won't work on your Mac coming from Windows. But functionally, it's identical.