1
I’m starting in android development, I do the steps to create an app and test but always at the end of any project is an error message on android:Heme, I will post below the screen hope someone can help, thanks.
1
I’m starting in android development, I do the steps to create an app and test but always at the end of any project is an error message on android:Heme, I will post below the screen hope someone can help, thanks.
1
You simply don’t have a style file with the theme Apptheme avowed
Create, inside the folder values, a file called Styles.xml.
Paste this content into it.
(The file name is arbitrary, IE, whatever... you choose )
<?xml version="1.0" encoding="utf-8"?>
<style name="AppTheme" parent="android:Theme.Light">
</style>
The above theme is as simple as possible.
If you want to learn how to make more up-to-date themes using Material Design for example, search the version 7 compatibility library (appcompat7)
With it, your theme would look like this (with Lollipop design)
<?xml version="1.0" encoding="utf-8"?>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
</style>
Browser other questions tagged android android-layout
You are not signed in. Login or sign up in order to post.
I believe your problem is the absence of Styles . Try to create inside Values a file called Styles.xml and set Apptheme settings.
– emanuelsn
After creating this file which settings I put in it?
– TGO
I remembered that this file is created automatically by the eclipse. But, here follows the link to the Styles. If that works out, let me know to post a reply.
– emanuelsn
It didn’t work, now it’s showing an error message in Styles.
– TGO
The name of the file you created is plural? (Styles.xml) And you remembered to adjust your code to the correct file name ?
– emanuelsn
It is plural and with the correct name.
– TGO
Let’s go continue this discussion in chat.
– emanuelsn
It has nothing to do with your question, but as you are starting Google already provides the sdk of the jetbrains Android Studio, try to use it.
– Hiago Souza