Tag Archives: eclipse error

2,826 views

Eclipse – Workspace in use or cannot be created chose a different one

Open your workspace folder and subfolder .metadata: C:\Users\workspace\.metadata\ Delete .lock file

Posted in Bugs, warnings, errors, Eclipse | Tagged | Comments Off on Eclipse – Workspace in use or cannot be created chose a different one
2,755 views

Unable to resolve target android

Unable to resolve target android-7 Try this solution: Select project from tree (project explorer) – right click on project – properties – select Android from tree – change Project Build Target to higher (or change project build target) – selct … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors | Tagged | Comments Off on Unable to resolve target android
11,475 views

Failed to create directory Android SDK Tools Instalation

Windows Vista try this: – right click on folder C:\Program Files\android\sdk – properties – security tab – change security: allow writing nad reading to folder Preparing to install archives Downloading Android SDK Platform-tools, revision 18.0.1 Installing Android SDK Platform-tools, revision … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged | Comments Off on Failed to create directory Android SDK Tools Instalation
11,442 views

addPreferencesFromResource Deprecated Android Code Warning

Put extends PreferenceFragment API level 11 instead PreferenceActivity public class SettingsActivity extends PreferenceFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); } }   // or insert suppresswarning public class SettingsActivity extends PreferenceActivity { @SuppressWarnings("deprecation") @Override public void onCreate(Bundle … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged | Comments Off on addPreferencesFromResource Deprecated Android Code Warning
5,259 views

Android Error: Converting to string: TypedValue{t=0x10/d=0xe a=-1}

Converting to string: TypedValue{t=0x10/d=0xe a=-1} <string-array name="listValuesTextSize"> <item>14</item> // error <item>"18"</item> // ok </string-array>

Posted in Android Examples Code, Bugs, warnings, errors, Eclipse | Tagged | Comments Off on Android Error: Converting to string: TypedValue{t=0x10/d=0xe a=-1}
7,160 views

Eclipse Error parsing the sdk Android

[2013-07-06 16:10:29 – SDK Manager] [SDK Manager] Error: Error parsing the sdk. [2013-07-06 16:10:29 – SDK Manager] [SDK Manager] Error: Failed to create C:\Program Files\android\sdk\add-ons. [2013-07-06 16:10:29 – SDK Manager] [SDK Manager] Error: Unable to parse SDK content. You have … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged | Comments Off on Eclipse Error parsing the sdk Android
17,892 views

Eclipse failed to create the java virtual machine – Android

Eclipse: failed to create the java virtual machine – message box Open folder with Eclipse.exe and find eclipse.ini file Replace -vmargs by your current real path of javaw.exe: -vm “c:\Program Files\Java\jdk1.7.0_07\bin\javaw.exe” -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar –launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -product com.android.ide.eclipse.adt.package.product –launcher.XXMaxPermSize 256M -showsplash … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged | Comments Off on Eclipse failed to create the java virtual machine – Android
2,843 views

Admob ads not visible on emulator Android 4.1

If you using GoogleAdMobAdsSdk-4.0.4.jar in your project and set android:targetSdkVersion=”17″ in AndroidManifest.xml , ads will not visible on emulator with Android 4.0.3 or 4.1. You have to set as android:targetSdkVersion=”17″ <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17" /> Update project.properties file – row with … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors, Eclipse | Tagged , , | Comments Off on Admob ads not visible on emulator Android 4.1
17,753 views

The application may be doing too much work on its main thread

Warning: The application may be doing too much work on its main thread Try this sorce code: import android.os.StrictMode;   public class MyActivity extends Activity { static{ StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); } @Override public void onCreate(Bundle savedInstanceState) { … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors | Tagged | Comments Off on The application may be doing too much work on its main thread
3,698 views

IndexOutOfBounds TextView Html Android 4.1 error

Try before html tags put space and check if every tag is closed b – /b. For example: My text (<i>some text</i>) blah blah… Change to: My text ( <i>some text</i>) blah blah… “java.lang.IndexOutOfBoundsException at android.graphics.Paint.getTextRunAdvances(Paint.java:1731) at android.graphics.Paint.getTextRunAdvances(Paint.java:1704) at android.text.MeasuredText.addStyleRun(MeasuredText.java:164) … Continue reading

Posted in Bugs, warnings, errors, Eclipse, Uncategorized | Tagged , | Comments Off on IndexOutOfBounds TextView Html Android 4.1 error