Hi guys am trying to compile this code from Git hub but getting the error (app crashes the moment i try to start with)
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.viewpagerparallax/com.example.viewpagerparallax.MyTestActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.viewpagerparallax.MyTestActivity" on path: DexPathList[[zip file "/data/app/com.example.viewpagerparallax-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.viewpagerparallax-1, /vendor/lib, /system/lib]]
non of the stack overflow questions/solutions helped me.
Moreover when i switch to main.xml layout view it says
The following classes could not be found:
- com.example.viewpagerparallax (Fix Build Path, Edit XML, Create Class)
although the .java file exist in the same package
and here is my manifest file (I have changed the package name to com.example.viewpagerparallax.MyTestActivity in my case ) here is the manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.viewpagerparallax"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.viewpagerparallax.MyTestActivity"
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>
This is the link which i am following
https://github.com/MatthieuLJ/ViewPagerParallax if u need the files please let me know.
Please Help Thanks in advance