I created an Android project in AIDE on my android phone running ICS and then to create an APK i copied the project folder into my PC and when i opened it in Eclipse, i get the following error:
[2012-03-28 09:04:04 – ColorFinder] Unable to resolve target ‘android-10’
my AndroidManifext.xml looks like the following:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sikni8.colorfinder"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="11" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar"
android:label="@string/app_name"
android:name=".MainActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
How do i find out what are the minimum and maximum target created by AIDE?
In my PC i only installed Android 4.0.3 (API 15). Can that be the reason?
Thanks
EDIT:
I have a few OnClickListener for buttons, but during compilation all four are giving me the following error: “The type OnClickListener is ambiguous”
An example:
clearValButton.setOnClickListener(new OnClickListener() {
//@Override
public void onClick(View z) {
hMain.setEnabled(true);
rMain.setEnabled(true);
gMain.setEnabled(true);
bMain.setEnabled(true);
findViewById(R.id.dummyFocus).setFocusableInTouchMode(true);
findViewById(R.id.dummyFocus).requestFocus();
Toast.makeText(MainActivity.this, "All inputboxes are now Enabled.", Toast.LENGTH_SHORT).show();
}});
You nearly gave the answer yourself:
and
So the Project requires Android 10, but you only got 15 installed.
So what stops you from installing the Android level 10 (2.3.3) with the Android SDK Manager or change the Build Target to 15?