Category Archives: Android Studio

498 views

Android Studio Gradle Download Link

I You use offline work for better building speed of project or for other purpose https://gradle.org/releases Offline work: File – Settings – Gradle – select Use local gradle distribution – select path Gradle home: – check Offline work

Posted in Android Studio | Tagged | Comments Off on Android Studio Gradle Download Link
675 views

Android Fragment Examples

Code look up at the Api Demos android_fragments arguments attributes – three fragments on screen android_fragments_alert_dialog android_fragments_context_menu android_fragments_custom_animation android_fragments_dialog android_fragments_dialog_or_activity fragment_hide_show fragment_layout fragments_list_array fragment_menu android_fragments_get_result_from_fragment and tabs in two rows android_fragments_recive_result android_fragments_stack fragment_tabs

Posted in Android Examples Code, Android Studio, Fragments Tutorial | Tagged , | Comments Off on Android Fragment Examples
681 views

Android Studio Browse Files Data Device Emulator

1.) Open DDMS via Menu Tools > Android > Android Device Monitor 2.) Select Device 3.) In DDMS click Menu Window > Show View > File Exlporer 4.) Device > Storage folder 5.) Emulator > data > data folder

Posted in Android Studio, Eclipse | Comments Off on Android Studio Browse Files Data Device Emulator
1,620 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
1,316 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
1,231 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,034 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
1,115 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,229 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

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