Asturz der Entwickelten App nach Update

  • 1 Antworten
  • Letztes Antwortdatum
M

mentismora

Neues Mitglied
0
Hallo liebe Runde,

mein Spiel ist unter AndroidStudio von mir entwickelt worden. Nun habe ich das 0.5.2 Update gedownloaded und wollte danach das Update von meiner App auch gleich mal testen. Nun bekomme ich aber eine Fehlermeldung, die ich nicht verstehe oO Weil ich...

1. Dieses Scheiss AppCompat Design nicht haben will oO Es so wie ich das verstehe aber nun seit Update 0.5.2 gezwungen werde es zu nehmen ?

2. Auch nachdem ich das Theme dann übernommen habe der Fehler immer noch gemeldet wird :/

Ich würde mich freuen wenn jemand von euch mir das Problem erklären kann und wie ich es löse ^^

Code:
04-12 18:14:37.062  25627-25627/de.aufschlussreich.bojbar.app E/AndroidRuntime FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to start activity ComponentInfo{de.aufschlussreich.bojbar.app/de.aufschlussreich.bojbar.app.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2463)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2520)
            at android.app.ActivityThread.access$600(ActivityThread.java:162)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:158)
            at android.app.ActivityThread.main(ActivityThread.java:5751)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
            at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:111)
            at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58)
            at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98)
            at de.aufschlussreich.bojbar.app.MainActivity.onCreate(MainActivity.java:14)
            at android.app.Activity.performCreate(Activity.java:5165)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1103)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2419)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2520)
            at android.app.ActivityThread.access$600(ActivityThread.java:162)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:158)
            at android.app.ActivityThread.main(ActivityThread.java:5751)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)
            at dalvik.system.NativeStart.main(Native Method)
Daher von der Activity redet ist hier auch noch einmal meine MainActi.
Code:
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;


public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    public void clickScanner(View view) {
        setContentView(R.layout.monsterscan);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

}
Liebe Grüße
 

Ähnliche Themen

G
Antworten
0
Aufrufe
106
Gerdchen07
G
G
Antworten
1
Aufrufe
365
Gerdchen07
G
G
Antworten
13
Aufrufe
578
Gerdchen07
G
L
Antworten
2
Aufrufe
471
Lexub
L
migi01
Antworten
26
Aufrufe
1.916
migi01
migi01
Zurück
Oben Unten