You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Venkata Kiran (JIRA)" <ji...@apache.org> on 2013/08/25 07:26:51 UTC

[jira] [Comment Edited] (CB-4660) Cordova Android project created using Cordova CLI is not compiling in eclipse.

    [ https://issues.apache.org/jira/browse/CB-4660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13749455#comment-13749455 ] 

Venkata Kiran edited comment on CB-4660 at 8/25/13 5:26 AM:
------------------------------------------------------------

I was able to create a work around for these issues.

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

I had to download the cordova android source code from the below link.

https://github.com/apache/cordova-android

Then I ran these commands to build cordova-dev.jar.

android update project -p . -t android-17
ant jar

I copied the jar file to the libs directory created by cordova and added the jar to the classpath. Then the compile errors are resolved, and I am able to launch the application in Android emulator. 
                
      was (Author: svkirans):
    I was able to create a work around for these issues.

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

I had to download the cordova android source code from the below link.

https://github.com/apache/cordova-android

Then I ran these commands to build cordova-dev.jar.

android update project -p . -t android-17
ant jar

I copied the jar file to the libs directory created by cordova and add the jar to the classpath. Then the compile errors are resolved and I am able to launch the application in Android emulator. 
                  
> Cordova Android project created using Cordova CLI is not compiling in eclipse.
> ------------------------------------------------------------------------------
>
>                 Key: CB-4660
>                 URL: https://issues.apache.org/jira/browse/CB-4660
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, App Hello World
>    Affects Versions: 3.0.0
>         Environment: Window 7, eclipse Juno, Android 2.3 - 4.3
>            Reporter: Venkata Kiran
>            Assignee: Joe Bowser
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira