[General Questions and Answers] Pieddog:
Help with Xposed development tutorial

I'm trying to do the Xposed tutorial by rovo89 on github.

I'm using Android Studio 2.1 and have gotten to the point where all the module will but doing is to write in the xposed log that the app has been loaded.

I'm testing it on a LG G4 with Lollipop 5.1 and xposed 83

But it only manages to write errors :(

I've restarted the tutorial many times now in case I had missed something but I still get the same error:

So what I'm taking from the log is that it obviously find my Class file but how do I make it find it?

14:49:15.115 I/Xposed (27016): Loading modules from /data/app/com.example.test-1/base.apk
05-07 14:49:15.125 I/Xposed (27016): Loading class com.example.test.Test
05-07 14:49:15.135 E/Xposed (27016): java.lang.ClassNotFoundException: Didn't find class "com.example.test.Test" on path: DexPathList[[zip file "/data/app/com.example.test-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
05-07 14:49:15.135 E/Xposed (27016):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
05-07 14:49:15.135 E/Xposed (27016):	at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:485)
05-07 14:49:15.135 E/Xposed (27016):	at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:451)
05-07 14:49:15.135 E/Xposed (27016):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:122)
05-07 14:49:15.135 E/Xposed (27016):	Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.example.test.Test" on path: DexPathList[[zip file "/system/framework/XposedBridge.jar"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
05-07 14:49:15.135 E/Xposed (27016):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
05-07 14:49:15.135 E/Xposed (27016):	... 4 more
05-07 14:49:15.135 E/Xposed (27016):	Suppressed: java.lang.ClassNotFoundException: com.example.test.Test
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.Class.classForName(Native Method)
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
05-07 14:49:15.135 E/Xposed (27016):	at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
05-07 14:49:15.135 E/Xposed (27016):	... 5 more
05-07 14:49:15.135 E/Xposed (27016):	Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Here's my android studio files that I've edited if it helps:

xposed_init:

com.example.test.Test

Class file:

package com.example.test;

import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;

public class Test implements IXposedHookLoadPackage {
public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
XposedBridge.log("Loaded app: " + lpparam.packageName);
}
}

AndroidManifest.xml (had to change this one a little as I can't post links)

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http : // schemas.android [dot] com/apk/res/android"
package="com.example.test"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="15" />

<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" >
<meta-data
android:name="xposedmodule"
android:value="true" />
<meta-data
android:name="xposeddescription"
android:value="Easy example which makes the status bar clock red and adds a smiley" />
<meta-data
android:name="xposedminversion"
android:value="83" />
</application>
</manifest>

build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.example.test"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter();
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
provided 'de.robv.android.xposed:api:82'
provided 'de.robv.android.xposed:api:82:sources'
}

Many thinks in advance