I have a similar problem: the library classes are not visible from the
main project.
The library R class is added to the main project gen directory.
But the directory for the library classes is not created in the main
project.
Using eclipse-java-galileo-SR2-win32 under Windows XP. Eclipse is set
to automatically refresh.
Tried all kinds of permutations for the last 2 weeks. Read the doc and
the example many times. Read all the threads on the subject in this
group. Ran out of ideas to try. Beginning to think that there is
something seriously flaky with Library Projects.
regards,
On Aug 1, 3:56 pm, "{ Devdroid }" <[email protected]> wrote:
> Hi,
>
> I tried to build testlibrary and test app with latest ADT and
> Eclispe however Eclipse complains
> on each reference I made tolibraryclasses from my test app.
> This is what I did:
>
> 1. created TestLibraryAndroidproject, marked it as "Library"
> (package name "test.library.lib")
> 2. created Test Appproject(package "test.library.app") and set it to
> use TestLibrary
> 3. TestLibrarygot LibActivity class which simply referes to
> lib_main.xml layout
> 4. I defined that activity in Test App manifest file:
>
> <activity android:name="test.library.lib.LibActivity"
> android:label="@string/app_name"
> android:theme="@android:style/Theme.Dialog"
> >
> <intent-filter>
> <action android:name="android.intent.action.MAIN" />
> <category android:name="android.intent.category.LAUNCHER" />
> </intent-filter>
> </activity>
>
> The problem is that Eclipse now compains "Class
> test.library.lib.LibActivity" does not exists". I also got same
> problem when I i.e. create a class in Test App that refers to classes
> inlibrary. Import test.library.lib.*; does not help. SDK version is
> recent. Target sdk=3 (tried setting to 8, but made no difference)
>
> There's TicTacToe exaple on developer website and it's exactly done
> same way, so I am a bit confused What am I doing wrong here?
--
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