سؤال

I have Android projects A and B, where Project B should reference project A. To accomplish that I did the following:

  • Mark A as "isLibrary" and added it to project B --> noClassdeFoundException
  • Added B under "Order and Export": A is checked and listed as first --> same exception

What else can I do?

هل كانت مفيدة؟

المحلول 3

I solved my problem by exporting Project A in a .jar-file (but without the AndroidManifest!), then importing that jar-File in Project B.

نصائح أخرى

i have the same problems with google maps utility library yesterday and i fixed my problems by adding the jar of the library to my libs folder of my project.

You can also right-click on B, click on Properties, select Android and then click "Add" in the Library sub-category and then add A to it.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top