how can I run my android app?

aniket agarwal

Unable to run my android app because it runs the image I stored in res/drawable file whenever I click the "run app" application.

I imported an image in the drawable folder of my android project, and then set it as background for main activity, but when I try to run the app instead it displays the image file.

also the following message is displayed in the gradle build.

Error:Execution failed for task ':app:mergeDebugResources'.

C:\Users\USER\AndroidStudioProjects\GoGetIt\app\src\main\res\drawable\GGIMain.jpg: Error: Invalid file name: must contain only lowercase letters and digits ([a-z0-9_.])

This is my 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">
Jeeter

The problem is in your naming of the background:

android:background="@drawable/GGIMain">

This filename (and corresponding xml entry) should be renamed to

android:background="@drawable/ggimain">

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I run an iOS or Android app on my PC?

How can I run/debug my android app on my device via USB from my mac?

How i can connect my real app an android studio so i can run espresso test on

I can't run my flutter app in my android emulators

How can i run my vuzix android glass app in android studio emulator?

How can I profile my Android app?

How can i check if the Android Device That Runs My App Run On version 4.2.2 and lower

How can i run a service for my android app to let the user return to the same activity and bypass login

How can I run my Docker Image and see working app?

How can i run my embedded Shopify app locally

How can I run npm on my Rails app on Heroku?

How can i made my app run and solve this error

How do i define the range of SDKs that my app can run on

How can I run release build of my Flutter app on Simulator

how can i run a github react native app in my system?

How can I install my ionic app on my android phone?

How can I can save HashMap in my Android app?

How can I add support for android 4.4 in my android app

Can I run my Tomcat app on Bluemix?

How can I break up my code so Xcode will let my run my App | SwiftUI

How can I use Android native icons in my new app?

How can I force user to update my android app with Github?

How can I check my Android app's network consumption?

How can I open my Android app through share screen?

How can I speed up my Android App testing

How can I persist my theme settings in android app?

How can I fix the layout views in my android app?

How Can I Add Map view to my Android app fragmentactivity

How can I start the Accessibility Settings Page of my APP in Android?

TOP Ranking

HotTag

Archive