You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/05/29 20:19:42 UTC

[GitHub] [cordova-android] GuilleW commented on pull request #928: Update check_reqs.js

GuilleW commented on pull request #928:
URL: https://github.com/apache/cordova-android/pull/928#issuecomment-636173917


   I can't build with nightly.
   TL;DR   look at the last `$ cordova build`
   
   ___
   
   See below...
   
   #### `$ cordova create hello com.example.hello HelloWorld`
   ```
   Creating a new cordova project.
   ```
   
   #### `$ cd hello`
   
   #### `$ cordova platform add android`
   ```
   Using cordova-fetch for cordova-android@^8.0.0
   Adding android project...
   Creating Cordova project for the Android platform:
   	Path: platforms/android
   	Package: com.example.hello
   	Name: HelloWorld
   	Activity: MainActivity
   	Android target: android-28
   Subproject Path: CordovaLib
   Subproject Path: app
   Android project created with cordova-android@8.1.0
   Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
   Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project
   Installing "cordova-plugin-whitelist" for android
   Adding cordova-plugin-whitelist to package.json
   ```
   
   #### `$ cordova requirements`
   ```
   Requirements check results for android:
   Java JDK: installed 11.0.7
   Android SDK: installed true
   Android target: installed android-28
   Gradle: installed /home/guillew/App/gradle/gradle-6.4/bin/gradle
   ```
   
   #### `$ cordova build`
   ```
   Checking Java JDK and Android SDK versions
   ANDROID_SDK_ROOT=/home/guillew/App/android-sdk (recommended setting)
   ANDROID_HOME=/home/guillew/App/android-sdk (DEPRECATED)
   Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.7
   Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
   ```
   
   ### Update to nightly
   
   #### `$ npm i cordova-android@nightly`
   ```
   npm WARN com.example.hello@1.0.0 No repository field.
   
   + cordova-android@9.0.0-nightly.2020.5.29.a830145f
   added 39 packages from 40 contributors, removed 6 packages, updated 12 packages and audited 88 packages in 6.784s
   
   2 packages are looking for funding
     run `npm fund` for details
   
   found 0 vulnerabilities
   ```
   
   #### `$ cordova build`
   ```
   Unable to load PlatformApi from platform. Error: Cannot find module 'shelljs'
   Require stack:
   - /home/guillew/hello/platforms/android/cordova/lib/pluginHandlers.js
   - /home/guillew/hello/platforms/android/cordova/lib/AndroidProject.js
   - /home/guillew/hello/platforms/android/cordova/Api.js
   - /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js
   - /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js
   - /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js
   - /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/plugman.js
   - /usr/lib/node_modules/cordova/node_modules/cordova-lib/cordova-lib.js
   - /usr/lib/node_modules/cordova/src/help.js
   - /usr/lib/node_modules/cordova/src/cli.js
   - /usr/lib/node_modules/cordova/bin/cordova
   Unhandled error. ('The platform "android" does not appear to be a valid cordova platform. It is missing API.js. android not supported.')
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org