Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8169537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:52:23+00:00 2026-06-06T20:52:23+00:00

hi i am getting an error that DroidGap cannot be resolved as a type

  • 0

hi i am getting an error that DroidGap cannot be resolved as a type
my code is

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 am not getting build path when i right click on lib

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:52:24+00:00Added an answer on June 6, 2026 at 8:52 pm

    Add this line to the imports

    import org.apache.cordova.DroidGap;
    

    EDIT:

    If you are using Eclipse, you can use the key combination Ctrl + Shift + O to organize imports. This removes unused imports, and also will import the needed packages and/or classes (If there are multiple possibilities, e.g. android.view.View.OnClickListener and android.content.DialogInterface.OnClickListener, Eclipse will give you the chance to select the desired class to import).


    EDIT:

    You did not add the cordova jar to the build path. I checked your .classpath file on the github repo, and it lacks this line: <classpathentry kind="lib" path="libs/cordova-1.8.1.jar"/>.

    Solution: Right-click on the codova-1.x.x.jar -> Build path -> Add to build path.

    Please try to follow the steps defined here.


    EDIT

    Do the following: 1. Right-click the project. 2. Click properties. 3. On the left, select Java Build Path. 4. You see four tabs: Source, Projects, Libraries, Order and Export. Select Libraries. 5. On the right click the button Add JARs.... 6. Search for cordova-1.x.x.jar in your project, and select it. 7. Click OK. 8. Done

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting an error saying that @android:style/Widget.Holo.Light.Button.Borderless is not public and so can't
I am getting an error that I cannot figure out: ActionView::MissingTemplate (Missing template cluster/delete_stuff.erb
Here is the piece of code that I am getting error, SDL_Rect's definition is
When I run the following code I'm getting an error that reads fig_match:rb:5:in '':
I'm getting and error that states the app is unable to destroy the activity
I am getting an error that I don't understand how to fix. The error
I am getting an error that says: error: looser throw specifier for 'virtual CPLAT::CP_Window::~CP_Window()'
For some reason I'm getting an error that basically states that it can't find
I am trying to access a stored procedure and I'm getting an error that
While importing website through content porter, I am getting an error that names and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.