library-project

Changes to Android library project are not applied until restarting Eclipse

限于喜欢 提交于 2019-12-08 07:56:29
I have a main Android application that is using an Android library project. When I change my library project and Build Project or Build All the changes are not detected in main project until I clean the main project or close and reopen Eclipse. How con I solve this problem? Is there any rapid solution? Update I am using: Eclipse 3.7.1 Android SDK API 15 Rev 3 Android SDK Tools Rev 19 Android SDK Platform-tools Rev 11 Bobs Solution 1) I clicked on Android Dependencies in Package Explorer and pressed F5 (refresh) and built the main project and problem solved. Solution 2) this answer also works

Expose an “Android Library Project”'s included jars to Projects which reference them

谁说我不能喝 提交于 2019-12-07 19:18:46
问题 One of the newer functions of Android is the ability to create a Library Project. This is great for unit testing and sharing common functionality across many apps you may be developing, but I seem to have stumbled upon a bug in their implementation. When you have the following situation: - LibraryProject contains LibraryProject/libs/folder/lib.jar in it's build path. - ReferencingProject references LibraryProject . From ReferencingProject you don't have access to anything inside lib.jar (Such

Expose an “Android Library Project”'s included jars to Projects which reference them

与世无争的帅哥 提交于 2019-12-06 00:57:50
One of the newer functions of Android is the ability to create a Library Project . This is great for unit testing and sharing common functionality across many apps you may be developing, but I seem to have stumbled upon a bug in their implementation. When you have the following situation: - LibraryProject contains LibraryProject/libs/folder/lib.jar in it's build path. - ReferencingProject references LibraryProject . From ReferencingProject you don't have access to anything inside lib.jar (Such as constant's used to communicate with methods in the Library Project ). A solution to this is to

How to run unit tests for Xamarin library projects (iOS and Android)?

只愿长相守 提交于 2019-12-05 16:33:51
I'm creating a component for the Xamarin Component Store, providing a Library for Android and iOS. I've put NUnit tests into both library projects but I can't run the unit tests. Is it possible to execute tests in a Android/iOS library project? Ben Bishop If you make your library a PCL, you can create a NUnit project that links to the PCL and run your tests that way: https://dzwonsemrish7.cloudfront.net/items/0H3W383D2e031q1p3s40/Screen%20Shot%202013-08-12%20at%207.56.05%20PM.png?v=d5aac873 Xamarin also provides a NUnitLite test runner for iOS: http://docs.xamarin.com/guides/ios/deployment,

In Eclipse, how can I quickly access the source of an “android library project” from the source of a project that uses it?

我的梦境 提交于 2019-12-04 23:09:48
问题 Project A is an android library project in my workspace(via project properties->android->library: is library). Project A declares classA. Project B uses project A (via project properties->android->library: add...). Project B instantiates classA. When I use F3 ("open declaration") over the classA instance in project B, it leads me to the classA.class in the A.jar that is included in B, built from A. Is there a way to go directly to the source classA.java in project A rather than looking for it

In Eclipse, how can I quickly access the source of an “android library project” from the source of a project that uses it?

99封情书 提交于 2019-12-03 15:32:40
Project A is an android library project in my workspace(via project properties->android->library: is library). Project A declares classA. Project B uses project A (via project properties->android->library: add...). Project B instantiates classA. When I use F3 ("open declaration") over the classA instance in project B, it leads me to the classA.class in the A.jar that is included in B, built from A. Is there a way to go directly to the source classA.java in project A rather than looking for it in the package explorer? I think this is new to ADT14, formerly there were X_src folder for each

Intermodule (library projects) communication in android application

僤鯓⒐⒋嵵緔 提交于 2019-12-03 11:39:55
问题 In the below shown diagram, I am having 3 modules(as android library) which extends the base "common components module" and all this 3 modules will be added to a single android application. All 3 modules are independent modules but when it comes as an application, it would require to share some data, launch other module and requires more inter-communication. So can anyone let me know how we can implement the "Data Sharing Layer" and "Navigation Controller" in this kind of architecture?

ActivityNotFoundException (YES, this activity is declared in AndroidManifest.xml)

筅森魡賤 提交于 2019-12-03 06:20:13
I found a few threads reporting a similar problem but none of them really offers something that I haven't tried already. An innocent such call: mActivity.startActivity(new Intent(mActivity, MyEditPreferences.class)); with the following in AndroidManifest.xml: <application> <activity android:name="MyActivityLib" /> <activity android:name="com.example.baseapp.MyEditPreferences" android:label="@string/app_name"> </activity> </application> Triggers the following exception: 06-14 14:06:50.297: ERROR/AndroidRuntime(9272): android.content.ActivityNotFoundException: Unable to find explicit activity

Updated SDK Tools and ADT to 17 and now getting VerifyErrors

柔情痞子 提交于 2019-12-03 00:27:50
I have a project that references two library projects. After upgrading the ADT and SDK tools to version 17 , the app crashes as soon as it hits a reference to a class defined in one of the Library projects. Errors such as: Unable to resolve superclass of Lcom/my/package/name/MyActivity; (118) Link of class 'Lcom/my/package/name/MyActivity;' failed VFY: unable to find class referenced in signature (Lcom/my/package/name/MyActivity;) and: FATAL EXCEPTION: main java.lang.VerifyError: my/package/name/util/SomeClass at my.package.name.App.onCreate(App.java:120) at android.app.Instrumentation

'aapt' error. Pre Compiler Build aborted

人盡茶涼 提交于 2019-12-01 18:28:56
问题 I'm using Eclipse 4.2.2 with Android SDK 22.0.1 to construct an Android application which uses the Facebook and Google Play Services lib. However I'm stuck with a problem: every time I include one or both of the library the aapt verbose mode crash in some point like this (I assume this also crash with verbose mode off, because the R.java files are not created on my project): [2013-06-21 01:33:40 - Project] (new resource id com_facebook_placepickerfragment_list_row from /Users/Solens/workspace