I created an Android project in AIDE on my Android phone running ICS, and then to create the APK, I copied the project folder to my computer, and when I opened it in Eclipse, I got the following error:
[2012-03-28 09:04:04 - ColorFinder] Failed to resolve target "android-10"
my AndroidManifext.xml is as follows:
<?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 know what the minimum and maximum goal created by AIDE is? On my PC, I installed Android 4.0.3 (API 15). Could this be the reason? Thanks
EDIT: I have several OnClickListener for buttons, but at compile time all four give me the following error: "OnClickListener type is ambiguous" 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(); }});
source share