library-project

Compiling android project with a library project fails with missing classes.jar

末鹿安然 提交于 2020-01-23 17:05:45
问题 I'm making an app that depends on the Android v7 appCompat support library. When I'm trying to build the project with Ant, I get an error from dex stating that it can't find the file classes.jar from the appCompat project's bin directory. Here's what I have done: I copied the appCompat directory under the SDK over to my project. It is now one of the top-level directories along with libs, res, src etc. I added the library to my project: android update project --target 1 --path . --library .

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

假装没事ソ 提交于 2020-01-13 11:15:35
问题 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? 回答1: 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

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

那年仲夏 提交于 2020-01-13 11:13:45
问题 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? 回答1: 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

Changes to Android library project are not applied until restarting Eclipse

北慕城南 提交于 2020-01-03 01:48:50
问题 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 回答1: Solution 1) I clicked on Android Dependencies in Package Explorer and

Android library project “java.lang.NoClassDefFoundError”

寵の児 提交于 2019-12-25 01:55:35
问题 Ok, first of all, I know, that many users asked this question many times in stackoverflow. I looked through all possible solutions, but still have problem. The problem: My IDE: Eclipse Standard/SDK Version: Kepler Release Build id: 20130614-0229 I have an android library project, called mb-fw-android. In this project properties -> android -> Is Library - checked; I have another project called mb-revise-android, an it needs to use mb-fw-android. I'v tried : 1) Go to mb-revise-android ->

What does checking the “is Library” checkbox do “Under the Cover”?

独自空忆成欢 提交于 2019-12-23 07:43:10
问题 I noticed that when I convert an existing Android Application project to an Android Library project by checking the "is Library" checkbox, nothing changes in the project's source code or XML files. So what really happens when the "is Library" checkbox is checked? What changes internally, in the package and/or project files ? Where can I learn more about this? To better explain my question: What I am interested to know (mainly for troubleshooting purposes) is what differentiates an Application

Android Studio Library project error

江枫思渺然 提交于 2019-12-22 01:35:06
问题 I have imported a module into my project. When i rebuilt the project , AS gave me an error saying Warning:Dependency Lib:unspecified on project app resolves to an APK archive which is not supported as a compilation dependency. I searched and changed apply plugin : 'com.android.application' to apply plugin: 'com.android.library' and also removed ApplicationId from defaultConfig. Yet i am getting this same error "Warning:Dependency Lib:unspecified on project app resolves to an APK archive which

Updated SDK Tools and ADT to 17 and now getting VerifyErrors

a 夏天 提交于 2019-12-20 10:48:18
问题 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

Updated SDK Tools and ADT to 17 and now getting VerifyErrors

两盒软妹~` 提交于 2019-12-20 10:48:03
问题 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

Android Library Project

▼魔方 西西 提交于 2019-12-18 09:38:42
问题 How can I use an Android Library Project, and overwrite certain classes in the "final project". In other words, I want to reference a library project, and at the same time, change some of the code.. 回答1: Probably not quite what Android Library projects are all about but you could achieve that by using the interface and class inheritance features of the java language itself. Library project seem to deal well with merging/overriding resources from the parent in the child and letting you use one