Category Archives: Android Studio

181 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
666 views

InterstitialAd Admob not visible

// on bottom of onCreate add listener mInterstitialAd .setAdListener(new AdListener(){ public void onAdLoaded(){ interstitial.show(); } });   } // end onCreate   public void displayInterstitial (){ if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } }

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on InterstitialAd Admob not visible
605 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
897 views

FrameLayout fragment not visible Android

ListFragment show only one item issue Try to change layout_width to 0dp <fragment android:name="cz.okhelp.android.fragchangfromlist.ArticleFragment" android:id="@+id/article_fragment" android:layout_weight="2" android:layout_width="0dp" android:layout_height="match_parent" /> <!–todo LAYOUT_WIDTH have to be 0dp !!!!!!!!!!!!!!!!!!!!! –>   <FrameLayout android:id="@+id/article_fragment" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="2" />

Posted in Android Studio, Bugs, warnings, errors | Comments Off on FrameLayout fragment not visible Android
975 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,052 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
761 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
692 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
632 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
608 views

Android Studio gradle file comment same as java comment

// single line /* multi line */

Posted in Android Examples Code, Android Studio | Comments Off on Android Studio gradle file comment same as java comment