how can I run my android app? -


unable run android app because runs image stored in res/drawable file whenever click "run app" application.

i imported image in drawable folder of android project, , set background main activity, when try run app instead displays image file.

also following message displayed in gradle build.

error:execution failed task ':app:mergedebugresources'.

c:\users\user\androidstudioprojects\gogetit\app\src\main\res\drawable\ggimain.jpg: error: invalid file name: must contain lowercase letters , digits ([a-z0-9_.])

this activity_main.xml coding

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"     \\\android:layout_width="match_parent" android:layout_height="match_parent" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" android:paddingbottom="@dimen/activity_vertical_margin" tools:context=".mainactivity" android:background="@drawable/ggimain"> 

the problem in naming of background:

android:background="@drawable/ggimain"> 

this filename (and corresponding xml entry) should renamed to

android:background="@drawable/ggimain"> 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -