Eclipse – “ERROR/AndroidRuntime(…): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{…}: java.lang.ClassNotFoundException:…”

Verify that in your Manifest file there is activity tag like this

<activity android:name=“.classname”>

and that classname is the name of class that

extends Activity

Did my solution solve your problem?

Eclipse – “invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe”

After Android SDK update, when you try to launch the Emulator from Eclipse show this error message:
[… – Emulator] invalid command-line parameter: FilesAndroidandroid-sdktools/emulator-arm.exe.
[… – Emulator] Hint: use ‘@foo’ to launch a virtual device named ‘foo’.
[… – Emulator] please use -help for more information

Solution:

In Eclipse go to menu Window -> Preferences -> Android
Change SDK Location
from
C:\Program Files\Android\android-sdk
to
C:\PROGRA~1\Android\android-sdk
then click Apply and OK.

Like ahmed said in his comment:
“You have do change the path to the Android SDK to have it without spaces at all.” 😉

Alternative Solution: by Brandon Peters (@cisox):
Create a symlink between the android-sdk folder in C:\Program Files (x86) and C:\AndroidSDK:

Start Command Prompt Window (Start -> Run -> cmd) and execute the following command:

mklink /D C:AndroidSDK “C:\Program Files (x86)\Android\android-sdk”

Did my solution solve your problem?

Cygwin – “ERROR: You are using a non-Cygwin compatible Make program.”

“ERROR: You are using a non-Cygwin compatible Make program.
Currently using: C:/cygwin/bin/make

Solution:

Follow these steps:

  1. Ensure that the Cygwin ‘make’ package is installed.
    NOTE: You will need GNU Make 3.81 or later!

  2. Define the GNUMAKE environment variable to point to it, as in:

export GNUMAKE=/usr/bin/make

  1. Call ‘ndk-build’ again.”

If the ‘make’ is installed, this error probably stems from a bug. You need to move your ndk to a folder that does not have spaces in the path as well as your project.

For example:
from
C:\Program Files\Android\android-ndk-r5c
to
C:\Android\android-ndk-r5c

Then define the GNUMAKE environment variable as described in the error message text.

Alternative Solution: by AntonK:

Define the PATH to it using DOS-like notation:

PATH=…;C:\PROGRA~1\Android\android-ndk-r6b;

Did my solution solve your problem?

Cygwin – “ERROR: Cannot find ‘make’ program. Please install Cygwin make package or define the GNUMAKE variable to point to it.”

Run Cygwin‘s setup.exe.
Into Select Packages search “make” into Devel section and change New column value from Skip to Keep, then click on Next then End.

Did my solution solve your problem?

Installing Cygwin – “unable to get setup.ini”

Hi,
if in your network you have a proxy or firewal restriction, in
Select Your Internet Connection
use one of following options:
Use Internet Explorer Proxy Setting
or
“Use HTTP/ FTP Proxy” and select HTTP mirror If you’re not sure that you can use FTP.

Solution of ddddd (from comments):
Right-click on setup.exe and choose “Run as Administrator”

Did my solution solve your problem? Leave a reply.

HOW TO Download NDK if the link does not work

Hi,
if the url is like this:
http://dl.google.com/android/ndk/android-ndk-<version>-<platform>.<extension>
and it does not work, try to use this:
https://dl-ssl.google.com/android/ndk/android-ndk-<version>-<platform>.<extension>

Did my HOW TO help you?