Eclipse errors

178 views
Skip to first unread message

Dave Eichler

unread,
Jul 31, 2009, 6:36:36 PM7/31/09
to android-platform
Hi,

I just downloaded the source, successfully compiled it using 'make',
but when I brought it into eclipse I'm getting 236 errors .. most or
which are telling me certain things can't be resolved (a condensed
list is below).

Has anyone seen these errors, or have a solution for fixing it?

Thanks!

CertTool cannot be resolved LoadListener.java Android_Source/
frameworks/base/core/java/android/webkit line 1002 Java Problem

CONNECTED cannot be resolved VpnSettings.java Android_Source/packages/
apps/Settings/src/com/android/settings/vpn line 605 Java Problem

DISCONNECTING cannot be resolved VpnSettings.java Android_Source/
packages/apps/Settings/src/com/android/settings/vpn line 608 Java
Problem

IVpnService cannot be resolved AuthenticationActor.java Android_Source/
packages/apps/Settings/src/com/android/settings/vpn line 153 Java
Problem

Keystore cannot be resolved SecuritySettings.java Android_Source/
packages/apps/Settings/src/com/android/settings line 905 Java Problem

Keystore cannot be resolved to a type SecuritySettings.java
Android_Source/packages/apps/Settings/src/com/android/settings line
487 Java Problem

L2TP cannot be resolved VpnSettings.java Android_Source/packages/apps/
Settings/src/com/android/settings/vpn line 541 Java Problem

L2tpIpsecProfile cannot be resolved to a type L2tpIpsecEditor.java
Android_Source/packages/apps/Settings/src/com/android/settings/vpn
line 69 Java Problem

The import android.net.vpn cannot be resolved AuthenticationActor.java
Android_Source/packages/apps/Settings/src/com/android/settings/vpn
line 28 Java Problem


Dave Eichler

unread,
Jul 31, 2009, 6:58:42 PM7/31/09
to android-platform
To follow up on the previous post ... When I look at the source, it is
not finding packages such as:

android.net.vpn
android.security.Keystore ...

Any ideas why this would be 'missing'?

kees van der burg

unread,
Aug 2, 2009, 9:15:42 AM8/2/09
to android-platform
I could resolve most of the errors by editing the java build path in
the project properties tab. Add the following folders:
- android/framework/base/keystore/java
- android/framework/base/vpn/java

Now try to reolve the still missing "android.net.vpn.IVpnService"
import

Anyone an idea?

Srikanth

unread,
Aug 7, 2009, 9:55:07 AM8/7/09
to android-platform
Reading through the documentation - here is what I did (hopefully I
know what I am doing ;) )


"android.net.vpn.IVpnService" was able to find out source in
"frameworks/base/vpn/java/android.net.vpn/IVpnService.aidl" (Note the
*.aidl extension).

For IDL implementation (Android IDL aka aidl) there is no need to
"import" it in your code.

Looking at documentation at this URL
http://developer.android.com/guide/developing/tools/aidl.html#implementtheinterface


~~~~~~~~~~~~~~~~~~
To implement your interface, extend YourInterface.Stub, and implement
the methods. (You can create the .aidl file and implement the stub
methods without building between--the Android build process will
process .aidl files before .java files.)

Here is an example of implementing an interface called IRemoteService,
which exposes a single method, getPid(), using an anonymous instance:

// No need to import IRemoteService if it's in the same project.
private final IRemoteService.Stub mBinder = new IRemoteService.Stub(){
public int getPid(){
return Process.myPid();
}
}

~~~~~~~~~~~~~

In the above example the comment says "No need to import
IRemoteService if it's in the same project." Similarly since
IVpnService is in the same project - I believe we dont need to import
it.

I tried commenting the import statements and ran the build (using make
not eclipse) and the build was just fine.

If you find out anything different please post :)
> > > line 28 Java Problem- Hide quoted text -
>
> - Show quoted text -

Srikanth

unread,
Aug 7, 2009, 10:05:37 AM8/7/09
to android-platform
CORRECTION:::

"I tried commenting the import statements and ran the build (using
make not eclipse) and the build was just fine."


I tried ignoring the import errors in eclipse - and the build ran fine
(using make not eclipse)

(Ran into compilation issues when I commented the "import" statement
in "VpnSettings.java" and "AuthenticationActor.java" files.




On Aug 7, 9:55 am, Srikanth <srikanth.thirumur...@gmail.com> wrote:
> Reading through the documentation - here is what I did (hopefully I
> know what I am doing ;) )
>
> "android.net.vpn.IVpnService" was able to find out source in
> "frameworks/base/vpn/java/android.net.vpn/IVpnService.aidl"  (Note the
> *.aidl extension).
>
> For IDL implementation (Android IDL aka aidl) there is no need to
> "import" it in your code.
>
> Looking at documentation at this URLhttp://developer.android.com/guide/developing/tools/aidl.html#impleme...
>
> ~~~~~~~~~~~~~~~~~~
> To implement your interface, extend YourInterface.Stub, and implement
> the methods. (You can create the .aidl file and implement the stub
> methods without building between--the Android build process will
> process .aidl files before .java files.)
>
> Here is an example of implementing an interface called IRemoteService,
> which exposes a single method, getPid(), using an anonymous instance:
>
> // No need to import IRemoteService if it's in the same project.
> private final IRemoteService.Stub mBinder = new IRemoteService.Stub(){
>     public int getPid(){
>         return Process.myPid();
>     }
>
> }
>
> ~~~~~~~~~~~~~
>
> In the above example the comment says "No need to import
> IRemoteService if it's in the same project." Similarly sinceIVpnServiceis in the same project - I believe we dont need to import
> > > >IVpnServicecannot be resolved  AuthenticationActor.java        Android_Source/
> > > > packages/apps/Settings/src/com/android/settings/vpn     line 153        Java
> > > > Problem
>
> > > > Keystore cannot be resolved     SecuritySettings.java   Android_Source/
> > > > packages/apps/Settings/src/com/android/settings line 905        Java Problem
>
> > > > Keystore cannot be resolved to a type   SecuritySettings.java
> > > > Android_Source/packages/apps/Settings/src/com/android/settings  line
> > > > 487     Java Problem
>
> > > > L2TP cannot be resolved VpnSettings.java        Android_Source/packages/apps/
> > > > Settings/src/com/android/settings/vpn   line 541        Java Problem
>
> > > > L2tpIpsecProfile cannot be resolved to a type   L2tpIpsecEditor.java
> > > > Android_Source/packages/apps/Settings/src/com/android/settings/vpn
> > > > line 69 Java Problem
>
> > > > The import android.net.vpn cannot be resolved   AuthenticationActor.java
> > > > Android_Source/packages/apps/Settings/src/com/android/settings/vpn
> > > > line 28 Java Problem- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -

Handy_Zhou

unread,
Aug 17, 2009, 2:08:26 AM8/17/09
to android-platform
add the following folder:
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/vpn/
java
If you find other errors,you can searcn the lost file *.java(such as
IVpnService.java) and then add the folder

Dave Eichler

unread,
Aug 17, 2009, 4:21:20 PM8/17/09
to android-platform
Thanks for responding. What do you mean by add the folder?

In eclipse, should I just go into the Java Build Path and add that
folder in the source?

Thanks!

On Aug 17, 2:08 am, Handy_Zhou <qdzhouhanq...@gmail.com> wrote:
> add the following folder:
> out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/vpn/
> java
> If you find other errors,you can searcn the lost  file *.java(such as
> IVpnService.java) and then add the folder
>
> On Aug 2, 9:15 pm, kees van der burg <keesvanderb...@gmail.com> wrote:
>
> > I could resolve most of the errors by editing the java build path in
> > the project properties tab. Add the following folders:
> > - android/framework/base/keystore/java
> > - android/framework/base/vpn/java
>
> > Now try to reolve the still missing "android.net.vpn.IVpnService"
> > import
>
> > Anyone an idea?
>
> > On Aug 1, 12:58 am,DaveEichler<daveich...@gmail.com> wrote:> To follow up on the previous post ... When I look at the source, it is
> > > not finding packages such as:
>
> > > android.net.vpn
> > > android.security.Keystore ...
>
> > > Any ideas why this would be 'missing'?
>
Reply all
Reply to author
Forward
0 new messages