Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cannot be resolved to a type error(Import project issue)
icon9.gif  Cannot be resolved to a type error [message #1589231] Wed, 28 January 2015 10:10 Go to next message
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
Hi all, i'm new for eclipse and now i facing a problem when i import a project that i had downloaded from internet...the project give me an error with ".... cannot be resolved to a type ". Any expert here know how to solve my problem??? help me pls......
Re: Cannot be resolved to a type error [message #1589624 is a reply to message #1589231] Wed, 28 January 2015 15:02 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
This is not even close to enough information for anyone to provide help. You need to be more detailed in your explanation of a problem.
Re: Cannot be resolved to a type error [message #1590959 is a reply to message #1589624] Thu, 29 January 2015 08:30 Go to previous messageGo to next message
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
For example :

[size=1]package com.NewApp;

import android.app.Activity;
import zephyr.android.HxMBT.*;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
	BluetoothAdapter adapter = null;
	BTClient _bt;
	ZephyrProtocol _protocol;
	NewConnectedListener _NConnListener;
	private final int HEART_RATE = 0x100;
	private final int INSTANT_SPEED = 0x101;


then gv me the error with:
BTClient cannot be resolved to a type
ZephyrProtocol cannot be resolved to a type

and many many so on.....so how to i solve the problem??



Re: Cannot be resolved to a type error [message #1591413 is a reply to message #1590959] Thu, 29 January 2015 14:12 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
First, this is not the place for Android programming questions or questions about using ADT.
Second, have you imported this "zephyr" library into your project?
Re: Cannot be resolved to a type error [message #1591495 is a reply to message #1591413] Thu, 29 January 2015 15:14 Go to previous messageGo to next message
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
so i need to post my question on using ADT there? Btw how to import it into my library?? i'm new to eclipse....teach me pls~~~
Re: Cannot be resolved to a type error [message #1592233 is a reply to message #1591495] Fri, 30 January 2015 00:47 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 01/29/2015 08:14 AM, CHRISTOPHER LEE wrote:
> so i need to post my question on using ADT there? Btw how to import it
> into my library?? i'm new to eclipse....teach me pls~~~
>

The Zephyr library will be a JAR whose name contains Zephyr. Depending
on how you organize your project, whether you use Maven, etc. will
determine how to get it into your project.

The simple, easy to understand way is to right-click your project in the
Package/Project Explorer view, choose Build Path, then click the Library
tab and choose External JARs. Go find it in your filesystem (I would
suggest dropping it into a subdirectory named lib under your project
until you learn better how to do stuff like this) and add it.

Come back here if you have trouble with the Eclipse (not ADT) details.
We'll tell you when you're asking an ADT question.

Best of luck.
Re: Cannot be resolved to a type error [message #1592623 is a reply to message #1592233] Fri, 30 January 2015 06:09 Go to previous messageGo to next message
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
Hi Bateman, very thank for yr explanation, i also thinj that i need to add the classes imto my library. But i am new for eclipse and this is my 1st time to import existing project which is i download it from internet....i would like to ask where can i find the JARs file? Izzit it can find it on the folder which i was downloaded??
Re: Cannot be resolved to a type error [message #1592718 is a reply to message #1592623] Fri, 30 January 2015 07:23 Go to previous messageGo to next message
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
The attachment is the project that i want to import....but fail.....
Re: Cannot be resolved to a type error [message #1592822 is a reply to message #1592718] Fri, 30 January 2015 08:43 Go to previous messageGo to next message
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
I solve the problem already....thank you all so so so much!!!!!! tq all~~~~~~
Re: Cannot be resolved to a type error [message #1594347 is a reply to message #1592822] Sat, 31 January 2015 07:25 Go to previous messageGo to next message
Bennie Stichter is currently offline Bennie StichterFriend
Messages: 2
Registered: January 2015
Junior Member
I can't solve my problem, why?
Re: Cannot be resolved to a type error [message #1594869 is a reply to message #1589231] Sat, 31 January 2015 15:52 Go to previous messageGo to next message
Grove Connie is currently offline Grove ConnieFriend
Messages: 1
Registered: January 2015
Location: Frisco, TX
Junior Member
Thanks for your help
Re: Cannot be resolved to a type error [message #1697162 is a reply to message #1589231] Tue, 02 June 2015 06:36 Go to previous message
Bennie Stichter is currently offline Bennie StichterFriend
Messages: 2
Registered: January 2015
Junior Member
my problem has been solved. thank you!
Previous Topic:Skype Scanner
Next Topic:Exception while starting [Agent Controller] ACServer
Goto Forum:
  


Current Time: Wed Apr 24 19:21:26 GMT 2024

Powered by FUDForum. Page generated in 0.08981 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top