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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -