SQLTeam.com | Weblogs | Forums

Import android support not being resolved?


#1

Hi,
I am chipping away at an android venture where Android bolster library v7-appcompat is being included by eclipse.Now subsequent to following android engineers site, I have included reliance for this help library.My venture is free of blunders however while running the undertaking I am getting the mistake "The Import android.support.v7 can't be resolved".I am appending the log record and my primary activity.I have taken after relatively every post identified with this theme on SO yet the issue isn't settled yet.

05-26 12:07:19.613: E/AndroidRuntime(18953): java.lang.Error: Unresolved compilation problem:
05-26 12:07:19.613: E/AndroidRuntime(18953): The import android.support.v7 cannot be resolved
05-26 12:07:19.613: E/AndroidRuntime(18953): at com.sim.clientkeeper.MainActivity.(MainActivity.java:7)
05-26 12:07:19.613: E/AndroidRuntime(18953): at java.lang.Class.newInstanceImpl(Native Method)

`import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;

import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

public class MainActivity extends AppCompatActivity {
SQLiteDatabase sqlDba;
SQLiteAdapter DbAdapter;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_main);
    DbAdapter = new SQLiteAdapter(getApplicationContext());
      DbAdapter.open();

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    // Handle action bar item clicks here. The action bar will
    // automatically handle clicks on the Home/Up button, so long
    // as you specify a parent activity in AndroidManifest.xml.
    int id = item.getItemId();
    if (id == R.id.action_settings) {
        return true;
    }
    return super.onOptionsItemSelected(item);
}

public void onClickClient(View v)
{
    Intent i=new Intent(this,CLient_List_Activity.class);
    startActivity(i);
}

public void onClickTravel(View v)
{
    Intent i=new Intent(this,Travel_Activity.class);
    startActivity(i);
}

}

Thank you,
priya


#2

This is a SQL Server forum, but your question looks like an Eclipse question. Maybe try an Eclipse forum?


#3

Yup, definitely looks like it.