Tag Archives: error

389 views

All com.android.support libraries must use the exact same version specification

For example: If You using compileSdkVersion 25 buildToolsVersion “25.0.0” You have to using latest version of support libraries with number 25. Also check the library project!   apply plugin: ‘com.android.application’   android { compileSdkVersion 25 buildToolsVersion "25.0.0"   defaultConfig { … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on All com.android.support libraries must use the exact same version specification
703 views

Android Studio emulator errors warnings issue

– check errors, warnings in build.gradle and other files – Sync project – Clean project – Rebuild project – restart Android Studio – restart ADB – update Tools, libraries, etc. Speed Up Gradle Build In Android Studio -a android.intent.action.MAIN -c … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on Android Studio emulator errors warnings issue
1,045 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,143 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
880 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
1,991 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
589 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
670 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
619 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,417 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