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 [email protected]
   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 [email protected] No repository field.
   
   + [email protected]
   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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to