java - Android App has unfortunately stopped Error -


i've started build first android app , 1st time errors bugging me since 2 days. finding no solution had come here. have been following androids official tutorial first app , can't open app.

error: "unfortunately "app name" has stopped"

here manisfest file,

    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="app2.android" android:versioncode="1" android:versionname="1.0" >  <uses-sdk     android:minsdkversion="17"     android:targetsdkversion="19" />  <application     android:allowbackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme" >    <activity android:name="mainactivity" >      <intent-filter>           <action android:name="android.intent.action.main" />           <category android:name="android.intent.category.launcher" />     </intent-filter>   </activity>  </application> 

error logs : log cat file screenshot https://www.dropbox.com/s/05l0ytiqkl7eo8v/capture2.jpg

replace class code:

package com.android.myapp;  import android.os.bundle; import android.app.activity; import android.view.menu;  public class petuuk extends activity {  @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_main); // replace layout name    } } 

clean project run again.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -