How to create an Extension Kodular Android App
I this Tutorial I am going to teach you how to create Extensions for AppInventor and Kodular.
Tools you will need:
- Java JDK
- Apache Ant
- Git Bash
- AppInventor Sources
- Java Code Editor (Notepad++ 18, jEdit 13, EditPlus 5, etc)
Step 1: Download and Install Java JDK
- Install Java JDK
- Set the Environmental Variables:
-
Set “
JAVA_HOME” to your install Java install path. Example: “C:/Java/jdk1.8.0_31” -
Edit “
PATH” and add those:
%JAVA_HOME%/bin
%JAVA_HOME%/jre/bin -
Set “
CLASSPATH” to “%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar”
Step 2: Download and Install Apache Ant
- Download Apache Ant 1.10.1
- Unzip the folder and move it to a place where it is safe
- Set the Environmental Variables:
-
Set “
ANT_HOME” to the Folder where ant is. Example: “C:/Ant/apache-ant-1.10.1” -
Edit “
Path” and add “Folder where ant is+ \bin”. Example: “C:/Ant/apache-ant-1.10.1\bin” -
Edit “
ClassPath” and add “Folder where ant is+ \lib”. Example: “C:/Ant/apache-ant-1.10.1\lib”
Step 3: Download and Install Git Bash
- Download and Install Git Bash
Step 4: Download AppInventor Sources
- Download appinventor-sources
- Unzip the folder and move it to a place where it is safe
Step 5: Testing if it works
- Go to your appinventor-sources folder and open the
appinventorfolder - Right click in the folder and select “
Git Bash Here” - Type “
ant” and click on enter
If says: “
If says: “
BUILD SUCCESSFUL”, then you can go to Step 6If says: “
BUILD FAILED”, then you did something wrong or missed a step
Step 6: Building an Extension
SimpleExtension.java 12 (2.8 KB)
- Download the file and move it to “
appinventor-sources/appinventor/components/src/com/sanderjochems/”
Note: If you want a other package name, then you need to put the SimpleExtensions.java in a other folder and update the package name in the file - Go back to the “
appinventor” folder - Right click in the folder and select “
Git Bash Here” - Type “
ant extensions” and click on enter
If says: “
If says: “
BUILD SUCCESSFUL”, then you can create Extensions 
If says: “
BUILD FAILED”, then you did something wrong

0 comments:
If you have any doubts & Suggestion, Please let me know