on 02-25-2016 1:45 PM
Hi
What could be the problem? cordova@5.1.1 version is triggered, causing the same error
D:\Documents\mobileSAP\KapselSDK\apps\fiori_client>node create_fiori_client.js
No config file specified.
Searching for config.json in the current directory.
Config file found at D:\Documents\mobileSAP\KapselSDK\apps\fiori_client/config.json.
platforms: ios,android
Creating fioriCliente project.
Creating a new cordova project.
D:\Documents\mobileSAP\KapselSDK\apps\fiori_client\fioriCliente D:\Documents\mobileSAP\KapselSDK\apps\fiori_client
Adding SAP plugins...
Fetching plugin "cordova-plugin-camera@1.2.0" via npm
Fetching plugin "cordova-plugin-contacts@1.1.0" via npm
Fetching plugin "cordova-plugin-file@2.1.0" via npm
Fetching plugin "cordova-plugin-geolocation@1.0.1" via npm
Fetching plugin "cordova-plugin-statusbar@1.0.1" via npm
Fetching plugin "cordova-plugin-splashscreen@2.1.0" via npm
Fetching plugin "cordova-plugin-network-information@1.0.1" via npm
Fetching plugin "cordova-plugin-whitelist@1.0.0" via npm
Fetching plugin "cordova-plugin-crosswalk-webview" via npm
Fetching plugin "nl.x-services.plugins.launchmyapp@3.2.2" via npm
Error: Failed to fetch plugin nl.x-services.plugins.launchmyapp@3.2.2 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/nl.x-services.plugins.launchmyapp
node -v
v4.3.0
cordova -v
6.0.0
git --version
git version 2.6.0.windows.1
PATH
C:\Program Files (x86)\Git\cmd;C:\Program Files\nodejs\;C:\Users\dguizzo\AppData\Roaming\npm
echo %KAPSEL_HOME%
D:\Documents\mobileSAP\KapselSDK
Regards.
Diego
looks like proxy issues
you have to set proxy settings for NPM
e.g.
npm config set proxy http://proxy:80
npm config set https-proxy http://proxy:80
Regards,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you run command "cordova -d build android" reported error.
Perform the test importing it into eclipse and not get the android SDK supported.
Can you tell compatibility with android ?.
ERROR:
C:\KapselSDK\apps\fiori_client\FioriTGV>cordova -d build android
Generating config.xml from defaults for platform "android"
Calling plugman.prepare for platform "android"
Preparing android project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'cordova-plugin-camera',
'cordova-plugin-contacts',
'cordova-plugin-crosswalk-webview',
'cordova-plugin-customurlscheme',
'cordova-plugin-file',
'cordova-plugin-geolocation',
'cordova-plugin-network-information',
'cordova-plugin-splashscreen',
'cordova-plugin-statusbar',
'cordova-plugin-whitelist',
'de.appplant.cordova.plugin.printer',
'kapsel-plugin-apppreferences',
'kapsel-plugin-attachmentviewer',
'kapsel-plugin-barcodescanner',
'kapsel-plugin-cachemanager',
'kapsel-plugin-cdsprovider',
'kapsel-plugin-e2etrace',
'kapsel-plugin-encryptedstorage',
'kapsel-plugin-fioriclient',
'kapsel-plugin-logger',
'kapsel-plugin-multidex',
'kapsel-plugin-push',
'kapsel-plugin-toolbar',
'kapsel-plugin-usage',
'kapsel-plugin-voicerecording',
'nl.x-services.plugins.calendar',
'kapsel-plugin-corelibs',
'cordova-plugin-device',
'kapsel-plugin-inappbrowser',
'kapsel-plugin-authproxy',
'kapsel-plugin-i18n',
'cordova-plugin-dialogs',
'kapsel-plugin-online',
'kapsel-plugin-logon',
'kapsel-plugin-xhook',
'kapsel-plugin-settings',
'cordova-plugin-screen-orientation' ]
Writing out cordova_plugins.js...
Wrote out Android application name to "FioriTGV"
This app does not have launcher icons defined
Wrote out Android package name to "com.sap.fiori"
Running command: cmd "/s /c "C:\KapselSDK\apps\fiori_client\FioriTGV\platforms\a
ndroid\cordova\build.bat""
ANDROID_HOME=C:\android_Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45
Running: C:\KapselSDK\apps\fiori_client\FioriTGV\platforms\android\gradlew cdvBu
ildDebug -b C:\KapselSDK\apps\fiori_client\FioriTGV\platforms\android\build.grad
le -Dorg.gradle.daemon=true
embedded
WARNING [Project: :] Current NDK support is deprecated. Alternative will be pro
vided in the future.
WARNING [Project: :] Current NDK support is deprecated. Alternative will be pro
vided in the future.
WARNING [Project: :] Current NDK support is deprecated. Alternative will be pro
vided in the future.
WARNING [Project: :] Current NDK support is deprecated. Alternative will be pro
vided in the future.
org.xwalk:xwalk_core_library:16+
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\KapselSDK\apps\fiori_client\FioriTGV\platforms\android\CordovaLib
\build.gradle' line: 49
* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> com/uphyca/gradle/android/AndroidAspectJPlugin : Unsupported major.minor versi
on 51.0
* 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: 13.193 secs
C:\KapselSDK\apps\fiori_client\FioriTGV\platforms\android\cordova\node_modules\q
\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\KapselSDK\apps\fiori_client\F
ioriTGV\platforms\android\gradlew cdvBuildDebug -b C:\KapselSDK\apps\fiori_clien
t\FioriTGV\platforms\android\build.gradle -Dorg.gradle.daemon=true"
Command finished with error code 1: cmd /s /c "C:\KapselSDK\apps\fiori_client\Fi
oriTGV\platforms\android\cordova\build.bat"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\usuario\AppData\Roaming\npm\node_modules\
cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Regards,
Diego
Please mark this Discussion with a Correct Answer (closes, but does not lock the Discussion) and Helpful Answer where appropriate. See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.
Do not use Assumed Answered as it confuses anyone looking for the specific answer. If you dig into the Getting Started link (top right of each SCN page), you are only instructed to mark Helpful or Correct Answers to Discussion responses.
Thanks, Mike (Moderator)
SAP Technology RIG
Dear all,
I am facing the same issue. And found the obvious solution that is to modify the create_fiori_client.js script to get read of the launchmyapp plugin part....
Thus, I have commented line 120 of the script and successfully built my android Fiori client.
The question is : how much do I need this plugin? I'll certainly discover this later... so far so good!
J,
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.