DroidGap cannot be resolved as

Hi, I get an error message that DroidGap cannot be resolved as type my code

package com.hello.ponegap;

import android.app.Activity;
import android.os.Bundle;
import com.hello.*;

public class HelloponegapActivity extends DroidGap  {
  /** Called when the activity is first created. */ 

  @Override  public void onCreate(Bundle savedInstanceState) {      
     super.loadUrl("file:///android_asset/www/index.html");
     super.onCreate(savedInstanceState);  
  }
}

thanks in advance also i don't get the build path when i right click on lib

+5
source share
2 answers

Add this line to the import

import org.apache.cordova.DroidGap;

EDIT:

If you use Eclipse, you can use a keyboard shortcut Ctrl + Shift + Oto organize the import. It removes unused imports, and import the necessary packages and / or classes (if there are several possibilities, for example android.view.View.OnClickListener, and android.content.DialogInterface.OnClickListener, the Eclipse will give you the opportunity to choose the class you want to import).


EDIT:

. .classpath github, : <classpathentry kind="lib" path="libs/cordova-1.8.1.jar"/>.

: codova-1.x.x.jar β†’ β†’ .

, .


: 1. . 2. . 3. " Java". 4. : Source, Projects, Libraries, Order and Export. Libraries. 5. Add JARs.... 6. cordova-1.x.x.jar . 7. OK. 8.

+7

Eclpise: , jar STILL , , jar

" a > Java > "

+1

All Articles