Tag Archives: error

838 views

Resource Entry already defined

Check if in drawable folder have two picture with same name and delete one. For example: image_1.jpg image_1.png Check the module build folder in Android Studio for two files with same names. C:\Users\myFolder\AndroidStudioProjects\Project\yourModule\build\intermediates\res\merged\debug\drawable\

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on Resource Entry already defined
866 views

Fragment FragmentBasic.zip null pointer TextView article

Example have error code: http://developer.android.com/training/basics/fragments/creating.html Try to change ArticleFragment.java /* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , , , | Comments Off on Fragment FragmentBasic.zip null pointer TextView article
1,930 views

android.app.Application cannot be cast to android.app.Activity

If you using Context as parameter of function try this solution: public class MyActivity extends Activity { // bla bla bla ……. //error myFc( getapplicationcontext()); // OK myFc(MyActivity.this);

Posted in Android Examples Code, Bugs, warnings, errors | Tagged | Comments Off on android.app.Application cannot be cast to android.app.Activity
1,369 views

Android widget SearchView in onCreateOptionsMenu is null

If your class extends AppCompatActivity public class SearchableActivity extends AppCompatActivity Check if linked appropriate library for: import android.support.v4.view.MenuItemCompat; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; Check if you have to properly sett SearchView in menu xml for onCreateOptionsMenu menu_main.xml <menu xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on Android widget SearchView in onCreateOptionsMenu is null
714 views

ActivityThread: Failed to find provider Sqlite database

Issue: ActivityThread: Failed to find provider Try check this authority tags if they are all the same: (com.yourdomen.yourproject.YourContentProviderClass replace your path to YourContentProviderClass) res/xml/serchable.xml Tag searchable <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:blahblah …… android:searchSuggestAuthority="com.yourdomen.yourproject.YourContentProviderClass" AndroidManifest.xml Tag provider <provider android:name=".YourContentProviderClass" android:authorities="com.yourdomen.yourproject.YourContentProviderClass" />

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on ActivityThread: Failed to find provider Sqlite database
8,058 views

Android Studio failed to find target with hash string android

Error:Cause: failed to find target with hash string android 15 click on message link in Android Studio error console and check your SDK version, which you have instaled on your computer. For example: if you have SDK version 21 instaled and … Continue reading

Posted in Android Studio | Tagged , | Comments Off on Android Studio failed to find target with hash string android
1,507 views

Eclipse update failed folder in use

Failed to rename directory …. If using for update Android SDK manager, try close Eclipse if is open. Or change security settings of the folder which have problem. Or disable antivirus for a moment.

Posted in Bugs, warnings, errors | Tagged , | Comments Off on Eclipse update failed folder in use
3,957 views

View overrides onTouchEvent but not performClick

public class Panel extends SurfaceView implements SurfaceHolder.Callback { //…………… code //…………… some code /** * Process the MotionEvent. */ @Override public boolean onTouchEvent(MotionEvent event) {   synchronized (getHolder()) { if (event.getAction() == MotionEvent.ACTION_DOWN) { performClick(); } else if (event.getAction() == … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors | Tagged , , , | Comments Off on View overrides onTouchEvent but not performClick
4,423 views

Installation error: INSTALL_FAILED_CONTAINER_ERROR

1.) Try delete some apps from Android emulator (can from Eclipse DDMS perspective – File Explorer tab – data/apps folder path ) 2.) Try resize emulator internal storage or SD card storage to hight size 3.)Try add to AndroidManifest.xml android:installLocation=”preferExternal” … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged | Comments Off on Installation error: INSTALL_FAILED_CONTAINER_ERROR
1,854 views

layout id cannot be resolved or is not a field

1.) check your xml files in res/layout folder if contain errors or warnings, repair this 2.) try comment import R in Activity file // import com.mysite.packagename.R; 3.) every clean and rebuild project

Posted in Bugs, warnings, errors, Eclipse | Tagged , | Comments Off on layout id cannot be resolved or is not a field