My simple form activity does not run (Android) -


this might basic question, don't know how fix it. i'm trying run simple example code create forms (android 5.1.1. api 22) using library called nexusdialog here, when want run (given after referencing required library code), see popular fatal exception error shown bellow. how can fix it?

07-16 14:24:07.959: e/androidruntime(22469): fatal exception: main 07-16 14:24:07.959: e/androidruntime(22469): process: com.example.test, pid: 22469 07-16 14:24:07.959: e/androidruntime(22469): java.lang.runtimeexception: unable instantiate activity componentinfo{com.example.test/com.example.test.mainactivity}: java.lang.classnotfoundexception: didn't find class "com.example.test.mainactivity" on path: dexpathlist[[zip file "/data/app/com.example.test-2/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]] 

and here main code (exact project folder uploaded here)

package com.example.test;  import java.util.arrays; import com.github.dkharrat.nexusdialog.formactivity; import com.github.dkharrat.nexusdialog.controllers.edittextcontroller; import com.github.dkharrat.nexusdialog.controllers.formsectioncontroller; import com.github.dkharrat.nexusdialog.controllers.selectioncontroller;  /**  * demonstrates bare minimum display form in activity.  */ public class mainactivity extends formactivity {      @override protected void initform() {         settitle("simple example");          formsectioncontroller section = new formsectioncontroller(this, "personal info");         section.addelement(new edittextcontroller(this, "firstname", "first name"));         section.addelement(new edittextcontroller(this, "lastname", "last name"));         section.addelement(new selectioncontroller(this, "gender", "gender", true, "select", arrays.aslist("male", "female"), true));          getformcontroller().addsection(section);     } } 

i checked uploaded project
it's seem add jar file, not correct instruction in nexusdialog
because activity use custom resource(which cannot add jar file), need follow guide add nexusdialog depedencies project.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -