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

Project does not include the specified platform: android error.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • cordova-serve@2.0.1
    • None
    • cordova-serve
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: