Mark,
I tried setting up 2 test projects as per the instructions given in
http://developer.android.com/guide/developing/other-ide.html#libraryP...
TestLib (libray project) and TestApp (application). Setup is done
successfully. ant compile on TestLib works perfectly. When I tried ant
debug/release on TestApp it is giving me following errors.

compile:
    [javac] Compiling 4 source files to /home/axa/test/project2/bin/
classes
    [javac] /home/axa/backup/project2/src/com/axa/testapp/
TestAppView.java:6: cannot find symbol
    [javac] symbol: class TestLib
    [javac] public class TestAppView extends TestLib
    [javac]                                  ^
    [javac] /home/axa/test/project2/src/com/axa/testapp/
TestAppView.java:12: cannot find symbol
    [javac] symbol  : variable super
    [javac] location: class com.axa.testapp.TestAppView
    [javac]         super.onCreate(savedInstanceState);
    [javac]         ^
    [javac] /home/axa/backup/project2/src/com/axa/testapp/
TestAppView.java:13: cannot find symbol
    [javac] symbol  : method setContentView(int)
    [javac] location: class com.axa.testapp.TestAppView
    [javac]         setContentView(R.layout.main);
    [javac]         ^
    [javac] /home/axa/backup/project2/src/com/axa/testapp/
TestAppView.java:9: method does not override or implement a method
from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] 4 errors


Did I missed anything which I supposed to do here?


On Sep 30, 7:41 pm, Namrata <[email protected]> wrote:
> thanks Mark..will give it a try..thank you very much
>
> On Sep 30, 7:33 pm, Mark Murphy <[email protected]> wrote:
>
> > On Thu, Sep 30, 2010 at 10:23 AM, Namrata <[email protected]> wrote:
> > > ok..so you mean I can't import apk..Is there a way to import complete
> > > code(src folder) of other project to current application?
>
> > Put the common code in an Android library project and reference that
> > library project from both applications:
>
> >http://developer.android.com/guide/developing/eclipse-adt.html#librar......
>
> > Or, have one project build a JAR that the other project uses, though
> > this technique does not support the use of resources and other
> > Android-specific stuff.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> > Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to