Androidmanifest error on android:Theme

Asked

Viewed 235 times

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.

Tela com erro no AndroidManifest

  • I believe your problem is the absence of Styles . Try to create inside Values a file called Styles.xml and set Apptheme settings.

  • After creating this file which settings I put in it?

  • 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.

  • It didn’t work, now it’s showing an error message in Styles.

  • The name of the file you created is plural? (Styles.xml) And you remembered to adjust your code to the correct file name ?

  • It is plural and with the correct name.

  • 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.

Show 3 more comments

1 answer

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

You are not signed in. Login or sign up in order to post.