Category Archives: Bugs, warnings, errors

Bugs and errors in IDE Eclipse or Android ADT emulator

1,555 views

NumberFormatException Color value drawable must start with

NumberFormatException Color value drawable must start with NumberFormatException: Color value ‘@drawable/my_picture’ must start with # Check all colors tags if value start with# Read this and check path c:\Users\me\AndroidStudioProjects\myProject\myModule\build\intermediates\res\merged\debug\ values folder for corupted values or delete ALL values folders or … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on NumberFormatException Color value drawable must start with
1,696 views

Android Studio failed to convert drawable into a drawable

Try this: – check names of drawables (file name must contain only abc…xyz 012…789 _ . in Resources folder , names have to start with lower case MyImage.jpg == problem , names with space my image.jpg == problem, names with … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on Android Studio failed to convert drawable into a drawable
1,344 views

ClassCastException fragments.MainActivity must implement OnHeadlineSelectedListener

Problem: You have two class with similar names HeadLinesFragment and HeadMyLinesFragment with OnHeadlineSelectedListener. Check if call correct class in MainActivity. For example if use HeadMyLinesFragment change implement to HeadMyLinesFragment too! public class MainActivity extends FragmentActivity implements HeadLinesFragment.OnHeadlineSelectedListener { // wrong … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors | Tagged | Comments Off on ClassCastException fragments.MainActivity must implement OnHeadlineSelectedListener
1,265 views

Who has higher priority build.gradle or AndroidManifest Android Studio

build.gradle in module have higher priority then AndrodiManifest.xml Try this. AndroidManifest.xml have code: <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23" /> build.gradle have code: defaultConfig { applicationId "cz.okhelp.words" minSdkVersion 9 targetSdkVersion 19 versionCode 107 versionName "1.0.7" } Warning in AndroidManifest.xml: This targetSdkVersion value (23) … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on Who has higher priority build.gradle or AndroidManifest Android Studio
1,013 views

App have transparent menu Android

If the app have transparent menu and you do not want this, try delete @style/AppTheme in application tag in AndroidManifest.xml and try run module – project. If menu is not transparent , maybe it caused <application android:allowBackup="true" android:icon="@drawable/dicts_ico" android:label="@string/app_name" android:theme="@style/AppTheme" … Continue reading

Posted in Android Examples Code, Android Studio, Bugs, warnings, errors | Tagged | Comments Off on App have transparent menu Android
1,078 views

How rebuild only one module in project Android Studio

If you do click on Rebuid project menu item, this operation maybe consume long time on slovly PC. Some errors dismis when you do rebuild project, or module. Try this: Select module where contains red error code and press Debugg … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Comments Off on How rebuild only one module in project Android Studio
1,324 views

Resources NotFoundException: File res/drawable/abc_btn_radio_on_mtrl.xml

If you make a new RadioButton and gradle istruction have compile ‘com.android.support:appcompat-v7:23.2.0′ try to change RadioButton into AppCompatRadioButton (context); RadioButton rb = new AppCompatRadioButton (context);

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on Resources NotFoundException: File res/drawable/abc_btn_radio_on_mtrl.xml
2,937 views

No executable code found at line – omits breakpoints

No executable code found at line …. Try one from this solution: 1.) uninstall app from test device, try to debugg app or 2.) open module gradle file and set minifyEnabled to false in debug condition debug { minifyEnabled false … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on No executable code found at line – omits breakpoints
776 views

Not visible layout changes on testing device

Delete – unistal app from testing device – emulator and try again RUN – DEBUGG your app.

Posted in Bugs, warnings, errors | Comments Off on Not visible layout changes on testing device
926 views

Imported module not visible in project explorer Android Studio

Imported module not visible in project explorer Android Studio but exist in project folder. Gradle sync failed: Cause: failed to find target with hash string ‘android-20′ in: C:\Users\jas\AppData\Local\Android\sdk android-20 is for example! Open file in existing module named build.gradle is … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on Imported module not visible in project explorer Android Studio