Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14191

Project does not include the specified platform: android error.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: cordova-serve@2.0.1
    • Fix Version/s: None
    • Component/s: cordova-serve
    • Labels:
      None
    • Environment:

      OS: Ubuntu 16.04

      Cordova CLI: 8.0.0

       

      Description

      Code on this this line: https://github.com/apache/cordova-serve/blob/master/src/util.js#L81 is trying to require `cordova/api` module but actual filename generated by cordova is Api.js and no file is being found on case-sensitive file systems like ext4. It leads to Project does not include the specified platform: android error.

      To reproduce issue please do the following:

       

      1. Make sure that you are using case-sensitive file system
      2. Clone demo repo: https://github.com/ruslan-bikkinin/cordova-serve-repro
      3. cd cordova-serve-repro
      4. npm i
      5. node serve

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ruslan.bikkinin Ruslan Bikkinin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: