android-library

How to fix the libgnustl_shared.so file duplicated which in third party sdks?

一个人想着一个人 提交于 2019-12-05 21:27:54
问题 When i used the gradle to build and run the apk, i get the error below:::: Error:Execution failed for task ':app:transformNative_libsWithMergeJniLibsForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK lib/armeabi-v7a/libgnustl_shared.so File1: app/build/intermediates/exploded-aar/com.facebook.react/react-native/0.20.1/jni File2: app/build/intermediates/exploded-aar/app/videosdk/unspecified/jni 回答1

Reporting Crashes in Android Library via Crashlytics

吃可爱长大的小学妹 提交于 2019-12-05 20:10:14
I am building an android library that I plan to integrate into many 3rd party apps(which do not belong to me). So, I am trying to figure out a way to find out if any of those 3rd party apps crashes due to the code in my library. Is there any way to find that out? I was looking at Crashlytics to achieve the same. But, as I understand, Crashlytics will be able to give the Crash analytics to only the app owner, right? Is there any way to collect the crash info without the intervention of the 3rd party app? Thanks. EDIT: This isn't a duplicate of Integrating Crashlytics to library project because

Too many method references in android library project - ClassNotFoundException

梦想与她 提交于 2019-12-05 17:46:51
I have library project which I am using in main android project using AAR file. I am getting the famous 65k method limit now which I have expected, but I have few queries. I have added AAR file in libs folder of my main project and compiled the same in build.gradle. 1) Do I need to add multi-dex support in both library as well as main android project? 2) Do I need to add afterEvaluate script in both project? Most importantly if we got multi-dex working, we might get issue that in main android project we get Classnotfound exception if any of the class which we try to use is not in main dex list

android library project obfuscation

一笑奈何 提交于 2019-12-05 14:53:55
问题 Hi I developed one android library and Now I want to obfuscate it for redistribution. I develop my library with eclipse and android version 4.1.2. I tried obfuscating with eclipse and pro-guard. I do export and and also put proguard.config = proguard-project.text in project-properties but it not generating any jar file. It shows me result as its not allowing to library projects. So I don't know how to obfuscating android library project. I need help regarding how to obfuscating of android

How do I see source or javadocs for a library dependency in an Android package in Eclipse?

最后都变了- 提交于 2019-12-05 12:47:44
I have two packages^ in Eclipse. One is marked as a Library and the other references it (under properties->Android), as described here: http://developer.android.com/guide/developing/projects/projects-eclipse.html My problem is that when I hover the mouse over some code referring to the referenced project eclipse displays "This element has no attached javadoc and the javadoc could not be found in the attached source" Furthermore when I select "Open Declaration" in the context menu for said code, it opens the associated .class (instead of the .Java) with the messsage "The JAR of this class file

Android Library Dependencies broken after SDK/ADT-Update

拈花ヽ惹草 提交于 2019-12-05 11:49:42
问题 Today, I updated my Android SDK and Eciple ADT to the most recent versions (ADT Rev 22). After restarting Eclipse it is quite unhappy with the Build Paths whenever I reference custom libraries. An example is shown in this screenshot: My custom "Android Utilities Library" compiles fine, but everything that depends on it shows build path errors. E.g. when I investigate the build path settings for "Android URA Library" it shows me an error with the android_utilities_library.jar missing under

How to distribute an Android Library

别等时光非礼了梦想. 提交于 2019-12-05 01:40:55
问题 I've been spinning a jar for android library project and including this jar in my other apps. But on developer.android.com, I see this statement that I can't distribute a library in a jar: You cannot export a library project to a JAR file A library cannot be distributed as a binary file (such as a JAR file). This will be added in a future version of the SDK Tools. I really don't understand what does that mean. 回答1: It is possible to create an Android library project that does not include

How to “install” Action Bar Sherlock?

夙愿已清 提交于 2019-12-05 01:30:35
I'm trying to build the sample project "Action Bar Styled" using the Action Bar Sherlock. I download the .zip file containing ABS here http://actionbarsherlock.com/ but I can't figure out where to unzip so that it will appear on Project>Properties>Add library. Can someone give me an hand? Also, I read somewhere (can't find it now, sorry) that the current Android Compatibility library supports the Action Bar in pre 3.0 versions, so it has basically the same "effect" as Action Bar Sherlock - can someone confirm this? Which library should I install? Elad92 Didn't heard about Compatibility library

How to include an Android library module in another library?

可紊 提交于 2019-12-05 01:28:51
I am building an Android library that is packaged as an aar and distributed to 3rd party developers. The structure is pretty simple: project ---libraryA ---libraryB libraryA requires libraryB, which is why is has this in its gradle file: compile project(':libraryB') And settings.gradle has include ':libraryB', ':libraryA' But if I build the project as an aar it only includes libraryA. What am I missing? I read the responses to this: Android Studio how to package single AAR from multiple library projects? Is this still not possible? I would assume that splitting up your code into multiple

Can't add modules on project structure in Android Studio

允我心安 提交于 2019-12-04 20:17:10
问题 The structure project window does not show all the options and I can not add libraries or modules. Check the image: And this is how it should look with all the options: I try to fix that reinstalling androidstudio, but it didn't work. I'm using Android Studio 2.9 and i already have working ABS, but i can't make work HoloEverywhere Is there any solution for this problem? Beforehand, thanks 回答1: Do Right Mouse Click on visible package, then select 'Open Module Settings' - it will give you