How to create an Extension Kodular Android App


Hello,
I this Tutorial I am going to teach you how to create Extensions for AppInventor and Kodular.

Tools you will need:

Step 1: Download and Install Java JDK
  • Install Java JDK
  • Set the Environmental Variables:
  • SetJAVA_HOME” to your install Java install path. Example: “C:/Java/jdk1.8.0_31
  • EditPATH” and add those:
    %JAVA_HOME%/bin
    %JAVA_HOME%/jre/bin
  • SetCLASSPATH” 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:
  • SetANT_HOME” to the Folder where ant is. Example: “C:/Ant/apache-ant-1.10.1
  • EditPath” and add “Folder where ant is+ \bin”. Example: “C:/Ant/apache-ant-1.10.1\bin
  • EditClassPath” 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 appinventor folder
  • Right click in the folder and select “Git Bash Here
  • Type “ant” and click on enter
If says: “BUILD SUCCESSFUL”, then you can go to Step 6
If says: “BUILD FAILED”, then you did something wrong or missed a step

Step 6: Building an Extension
  • 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: “BUILD SUCCESSFUL”, then you can create Extensions :tada:
If says: “BUILD FAILED”, then you did something wrong

0 comments:

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