5 Replies Latest reply on Oct 16, 2015 11:17 AM by Peter Grainge

    Native Mobile App not working ?

    jsem Level 1

      Hi i'm trying to generate native mobile app using robohelp i defined all requirement as i think here is:


      phonegap sdk : C:\Users\admin\AppData\Roaming\npm ; //not sure if this correct

      android sdk : D:\sdk\android-sdk

      jdk : C:\Program Files\Java\jdk1.8.0_05

      ant : D:\sdk\apache-ant-1.9.5-bin\apache-ant-1.9.5


      i got error message "verify jdk /ant paths and refer to out put log" here is my output log


      C:\Users\admin\Desktop\apk>android update project --name "NewProject" --target 1 --path .

      'C:\Windows\system32\java.exe' is not recognized as an internal or external command,

      operable program or batch file.

      ERROR: SWT folder '' does not exist.

      Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.


      Building App NewProject...


      C:\Users\admin\Desktop\apk>ant debug

      Buildfile: C:\Users\admin\Desktop\apk\build.xml







      [checkenv] Android SDK Tools Revision 24.4.0

      [checkenv] Installed at D:\sdk\android-sdk



           [echo] Project Name: NewProject

        [gettype] Project Type: Application









      [getbuildtools] Using latest Build Tools: 23.0.1

           [echo] Resolving Build Target for NewProject...

      [gettarget] Project Target:   Android 6.0

      [gettarget] API level:        23

           [echo] ----------

           [echo] Creating output directories if needed...

          [mkdir] Created dir: C:\Users\admin\Desktop\apk\bin\rsObj

          [mkdir] Created dir: C:\Users\admin\Desktop\apk\bin\rsLibs

           [echo] ----------

           [echo] Resolving Dependencies for NewProject...

      [dependency] Library dependencies:

      [dependency] No Libraries


      [dependency] ------------------

           [echo] ----------

           [echo] Building Libraries with 'debug'...

         [subant] No sub-builds to iterate on



      [mergemanifest] Found Deleted Target File

      [mergemanifest] Merging AndroidManifest files into one.

      [mergemanifest] Manifest merger disabled. Using project manifest only.

           [echo] Handling aidl files...

           [aidl] No AIDL files to compile.

           [echo] ----------

           [echo] Handling RenderScript files...

           [echo] ----------

           [echo] Handling Resources...

           [aapt] Found Deleted Target File

           [aapt] Generating resource IDs...

           [echo] ----------

           [echo] Handling BuildConfig class...

      [buildconfig] Generating BuildConfig class.





          [javac] Compiling 3 source files to C:\Users\admin\Desktop\apk\bin\classes

          [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

          [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

          [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

          [javac] C:\Users\admin\Desktop\apk\src\com\company\app\DefaultActivity.java:3: error: package org.apache.cordova does not exist

          [javac] import org.apache.cordova.DroidGap;

          [javac]                          ^

          [javac] C:\Users\admin\Desktop\apk\src\com\company\app\DefaultActivity.java:6: error: cannot find symbol

          [javac] public class DefaultActivity extends DroidGap

          [javac]                                      ^

          [javac]   symbol: class DroidGap

          [javac] C:\Users\admin\Desktop\apk\src\com\company\app\DefaultActivity.java:9: error: method does not override or implement a method from a supertype

          [javac]     @Override

          [javac]     ^

          [javac] C:\Users\admin\Desktop\apk\src\com\company\app\DefaultActivity.java:12: error: cannot find symbol

          [javac]         super.onCreate(savedInstanceState);

          [javac]         ^

          [javac]   symbol:   variable super

          [javac]   location: class DefaultActivity

          [javac] C:\Users\admin\Desktop\apk\src\com\company\app\DefaultActivity.java:13: error: cannot find symbol

          [javac]         super.loadUrl("file:///android_asset/www/index.htm");

          [javac]         ^

          [javac]   symbol:   variable super

          [javac]   location: class DefaultActivity

          [javac] 5 errors

          [javac] 3 warnings



      D:\sdk\android-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:

      D:\sdk\android-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.


      Total time: 1 second


      Build failed. Refer to the log above.