manifest - when open the android application, happen "Didn't find class "com.example.hello.hello" on path " -


i have error "didn't find class "com.example.hello.hello" on path".

hello/androidmanifest.xml

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

link picture, show code , error window

i think problem

android:name="hello" 

how fix it?

you should put full package name activity there. example:

android:name="com.example.hello.mainactivity" 

edit

now know have empty src folder, need add package matches android package name in manifest. right click on src folder , new -> package. name "com.example.hello". right click on new package , choose new -> class. name mainactivity.

you want read tutorials on need create code activity.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -