Announcement

Collapse
No announcement yet.

Eclipse läuft nicht richtig!

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Eclipse läuft nicht richtig!

    Hallo

    Ich habe folgendes Problem:

    Wenn ich in Eclipse ein neues Android Application Project erstelle, dann kommt in der Console die Fehlermeldung:

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:140: error: Error: No resource found that matches the given name: attr 'android:colorButtonNormal'.

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:138: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:139: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:137: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:134: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:135: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:144: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.

    E:\Eclipse Workspace\appcompat_v7\res\values-v21\themes_base.xml:148: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.

    Ich habe jetzt nur ein paar aufgeführt, weil da gibt es noch viel mehr.

    Und im generierten JAVA Code steht bei "import android.support.v7.app.ActionBarActivity" das Folgende:
    "The type ActionBarActivity is deprecated".
    Sowie "R cannot be resolved to a variable".

    Wisst ihr vielleicht wie man dieses Problem beheben kann?

    Danke schon im Voraus.

  • #2
    Was hast du installiert?
    Du hast Android installiert?
    Du hast das ADT PlugIn installiert?

    Steht da
    "The type ActionBarActivity is deprecated".

    Wenn du dann in das Javadoc schaust
    https://developer.android.com/refere...rActivity.html

    This class is deprecated.
    Use AppCompatActivity instead.
    Zuletzt editiert von Christian Marquardt; 23.05.2015, 12:26.
    Christian

    Comment


    • #3
      Ich habe alles notwendige installiert.
      Natürlich Eclipse, das SDK & das ADT. Vor 1 Jahe habe ich es schon einmal genau auf die gleiche weise installiert und da hat alles gleich funktioniert, keine Fehlermeldung ich konnte sofort loslegen.

      Bin gerade ein bisschen Ratlos, habe auch schon Hilfestellungen aus anderen Forenbeiträge probiert hat aber nichts geholfen.

      Ja genau das steht da: "The type ActionBarActivity is deprecated"

      Comment


      • #4
        Ja genau das steht da: "The type ActionBarActivity is deprecated"
        Was verstehst du nun daran nicht? Das englische Wort?
        http://www.dict.cc/englisch-deutsch/deprecated.html

        Im JavaDoc steht auch, was du stattdessen benutzen sollst!
        Christian

        Comment


        • #5
          Achja ... tut mir leid habe es vorher überlesen.

          Und wie behebt man den Fehler "R cannot be resolved to a variable"?

          Comment


          • #6
            http://stackoverflow.com/questions/7...-to-a-variable
            Christian

            Comment


            • #7
              http://www.androidpit.de/forum/654659/eclipse

              geschlossen
              Christian

              Comment

              Working...
              X