Skip to main content
jsem
Participating Frequently
October 14, 2015
Question

Native Mobile App not working ?

  • October 14, 2015
  • 1 reply
  • 1014 views

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

-set-mode-check:

-set-debug-files:

-check-env:

[checkenv] Android SDK Tools Revision 24.4.0

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

-setup:

     [echo] Project Name: NewProject

  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:

[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]

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

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

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

   [subant] No sub-builds to iterate on

-code-gen:

[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.

-pre-compile:

-compile:

    [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

BUILD FAILED

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.

This topic has been closed for replies.

1 reply

Adobe Employee
October 15, 2015

Hi Jsem,

Adobe Robohelp2015 release has come up with all new Mobile App SSL(single source layout). Mobile App SSL supports generation of iOS app along with Android. Please give it try and I am sure you will find this feature exciting. We have also published a blog to assist the user. Here is the link Create Mobile App using Adobe Robohelp 2015 « TechComm Central by Adobe

Thanks,

Mohd Sameer

jsem
jsemAuthor
Participating Frequently
October 16, 2015

yes .. but i was needed to build it offline without internet connection thanks  i have Rhl 2015 i will give try ..

Peter Grainge
Community Expert
Community Expert
October 16, 2015

The RoboHelp 2015 method is significantly easier than the methods for Rh10 and 11 but does require you to have an online connection.

If you email me direct I can send you some instructions for the earlier versions, just let me know which one you are using. However, I really would recommend the 2015 solution. You don't have to install any other apps.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.