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

Cordova Android project created using Cordova CLI is not compiling in eclipse.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 3.0.0
    • None
    • cordova-cli
    • None
    • Window 7, eclipse Juno, Android 2.3 - 4.3

    Description

      When an Android project is created using cordova command line and then imported into eclipse, the blank project created is not compiling.
      The following errors are shown during compilation.

      error: Error: String types not allowed (at 'configChanges' with value 'orientation|keyboardHidden|keyboard|screenSize|locale').
      error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'

      After changing the project target build to 18 from 10, then these errors are resolved, but the below errors continue even before changing the API version and also the API version.

      DroidGap cannot be resolved to a type
      Config cannot be resolved
      The import org.apache.cordova cannot be resolved
      The method onCreate(Bundle) of type HelloCordova must override or implement a supertype method

      The blank project created by cordova should compile without any issues.

      Attachments

        Activity

          People

            shepheb Braden Shepherdson
            svkirans Venkata Kiran
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: