$ ./CreateSampleApp.sh -d ~/Path/Where/The/App/Should/Be/Created -ios true -android true
Hope that helps
Eva
Thanks, that's progress, now I can this message when running the command:
*** GENERATING PROJECT ***
Creating a new cordova project.
sed: -e expression #1, char 1: unknown command: `.'
Some more progress after commenting out the first SED, but now I get this message:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\NVPACK\android-sdk-windows\build-tools\24.0.2\dx.bat --dex --output C:\Users\J\Telerik\AR2\platforms\android\build\intermediates\pre-dexed\debug\classes-4cbb65baf1a18d3371a96561fcbfebf4d814db90.jar C:\Users\J\Telerik\AR2\platforms\android\build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\classes.jar
Error Code:
1
Output:
java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: com.android.dx.command.Main. Program will exit.
Exception in thread "main"
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 43.188 secs
FAILURE: Build failed with an exception.
* What went wrong:
Failed to notify build listener.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1
From your console output I don't know exactly what is going wrong here. The log does not contain a direct hint to the Wikitude Component. Can you build a project without the Wikitude Component?
Thanks
Eva
Hi Jon !
Maybe this repository could be useful to you : https://github.com/Tazaf/WikitudeCordovaDemoApp
(Disclaimer : it's one of my own repo)
Regards,
Mathias
Jon Crump
Your page: http://www.wikitude.com/external/doc/documentation/latest/phonegap/setupguidecordovacli.html#PhoneGapSampleApp
Recommends using this on Windows:
However that causes an error:
sh is not recoginized as an internal or external command