As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [android-library]

An Android library project is a development project that holds shared Android source code and resources. Other Android application projects can reference the library project and, at build time, include its compiled sources in their .apk files.

Filter by
Sorted by
Tagged with
1 vote
1 answer
25 views

Debug Run In Android Studio Fails With: Instrumentation run failed due to Process crashed

All right, I have scoured the internet and I'm still struggling with this stuff. I have an android library (the full code can be found here) that I'm working on. So gist is, after upgrading to Android ...
CleverChuk's user avatar
0 votes
0 answers
20 views

"Native Libraries not loaded - dropping message " -- Android - Unity as a Library

I have been searching for days, I used the exact same implementation guide as in the demo (https://github.com/Unity-Technologies/uaal-example/blob/uaal-example/19LTS-21LTS/docs/android.md), which ...
isaacmaxparker's user avatar
0 votes
0 answers
18 views

Android app build error "Illegal char <:> at index 46: com.mydomain.foo.app-mergeDebugResources-63:/values/values.xml"

I have checked out a few similar posts. This seems to be related to conflicts in resource values. I know this is caused by a library aar. I would love to get a tip on how to find the conflict. I ...
Hong's user avatar
  • 17.4k
0 votes
0 answers
22 views

Issue with importing my own library files from JitPack dependency in Android Studio

I'm facing an issue with importing library files from a JitPack dependency in my Android Studio project. I have followed the steps to add the JitPack dependency, and the Gradle build is successful. ...
Rijo Kuriakose's user avatar
0 votes
0 answers
6 views

How to reference the resources of a library in a library?

Let me give a simple example. An Android Studio project has two modules: MyApp MyLibrary MyApp is an Android app and MyLibrary is an Android library used by MyApp. IMPORTANT:MyLibrary is a module ...
Hong's user avatar
  • 17.4k
2 votes
0 answers
31 views

Are There Any Working Dependencies for Tor/Orbot Library for Android?

I'm currently developing a kotlin webview/browser app for android. I wanted to use the tor/orbot library which doesn't require user to have tor/orbot app installed to use it via my browser. But, ...
HAAM Thelord's user avatar
0 votes
0 answers
24 views

Library module is not updated in the project after gradle sync

I have a library project and when I make changes to the library project, I rebuild it in order for those changes to take effect. To do this, I went to the "Build" menu in Android Studio and ...
bhaskar's user avatar
  • 981
0 votes
1 answer
31 views

How to configure an Android library that uses Firebase to authenticate users to use google-services.json from an app that uses it?

I'm trying to implement an Android library that uses Firebase authentication to authenticate users. It consists of one class that looks like this: class FirebaseRepository { fun ...
dacal's user avatar
  • 43
0 votes
0 answers
28 views

Override android library drawable resource

I have an Android library linked to a project and need to override some drawables defined in the former. Adding drawables with the same name to the project does not work, while other resource types ...
yaugenka's user avatar
  • 2,502
0 votes
0 answers
22 views

want to create a android library to access bottomsheet in many projects with a custom layout how do i find the views of the custom layout

Sorry if i have arise a dumb question but I am new here please Guide me I am here in Android field Thank you ! I have successfully created a bottomsheet with a custom layout but i want to find the ...
byte digital's user avatar
0 votes
0 answers
17 views

Why does get I get -2147483648 upon calling networkCapabilities.getSignalStrength() function?

So I have implemented a network callback of type ConnectivityManager.NetworkCallback, and in the overridden function override fun onCapabilitiesChanged(network:android.net.Network,networkCapabilities: ...
Abhishek Verma's user avatar
1 vote
0 answers
36 views

:feature1, :feature2 all package the same library [androidx.appcompat:appcompat-resources

I have many dynamic features in my project. Each one uses their own libraries. I am trying to add the library in base module. but it is giving me error. Caused by: org.gradle.api.GradleException: [:...
Dhaval Gulhane's user avatar
3 votes
0 answers
31 views

How to produce (and consume) multiple AARs from one (Android library) Gradle subproject

Due to use of Unity-as-a-Library we have an Android library module / Gradle subproject that has a number of AAR (Android archive) files in its "libs" directory. We have been using the com....
user6519354's user avatar
0 votes
1 answer
449 views

Gradle 8:':publishMavenPublicationToMavenRepository' uses this output of task ':bundleReleaseAar' without declaring an explicit or implicit dependency

I had this issue when I updated my gradle-wrapper to use Gradle 8.0. I had this two errors: 1. Task ':publishMavenPublicationToMavenRepository' uses this output of task ':androidSourcesJar' without ...
Mayank Pandit's user avatar
0 votes
0 answers
46 views

AAR Library dependencies not able to resolve in Consuming Host App

I created a Library project with HealthConnect SDK extending its functionality. I made a Host App that consumes that Library and accesses the features of the Library i.e. HealthConnect calls. The ...
Appoorva Faldu's user avatar
1 vote
0 answers
211 views

Can not use different namespaces for different build flavors in Android library

I tried to use different package name namespace for different product flavors in my Android library project. With the followed configuration productFlavors { foo { namespace '...
alijandro's user avatar
  • 11.5k
0 votes
0 answers
25 views

Use Flutter Android library in native Android project

I have a flutter project, I made the Android part a library and created an aar file. When I add it to a native Android library from local and use it, there is no problem. I can add this native library ...
enjektor0's user avatar
  • 463
0 votes
0 answers
24 views

Didnt find class from a library implemented

I'm working with a project app which has an implementation of a library. This library is using another implementation of another library, but when I execute a method of my library which implements ...
Víctor Martín's user avatar
0 votes
1 answer
196 views

How to reference a color in a android xml resource that is defined in a lib?

I have an android fragment app/src/main/res/layout/fragment_main.xml that references a color bg_line defined in app/src/main/res/values/colors.xml res/values/colors.xml : <resources> <color ...
k3b's user avatar
  • 14.4k
0 votes
0 answers
34 views

Android library dependency conflict

I am building an android library for my company. The library does some network calls and Retrofit library is being used for that purpose. I have successfully built the library and hosted on a private ...
Shubham Gajra's user avatar
4 votes
1 answer
2k views

Could not find method namespace() for arguments [com.android.mylib] on extension 'android' of type com.android.build.gradle.LibraryExtension

I am trying to create a library in android studio by following this official documentation. But in this particular project, I am facing this issue. if I create new project and create new lib I don't ...
Irfan Yaqub's user avatar
0 votes
0 answers
13 views

How to use UI based SDK in another project

I have two android projects, A kotlin based main app (https://github.com/abhishekds94/SDK-Test-App) A Jetpack compose-based UI project using which an SDK is generated with Jitpack (https://github.com/...
Abhishek sheshagiri's user avatar
0 votes
1 answer
16 views

How to deal with unstable library changes

I am using some libraries in my android project, which currently are stable. But in further version, if the library developers made some mistakes or removed the earlier functionality, then how can I ...
Ashish Joshi's user avatar
0 votes
0 answers
147 views

android exoplayer add ffmpeg extension to my project how?

I have an android application containing exoplayer instance, some udp video play without sounds , so i want to add Ffmpeg extension to my project, i am working on windows system and need to follow the ...
Malo's user avatar
  • 1,160
1 vote
0 answers
35 views

Is it possible to load Dynamic feature from a library in android?

Can i load a dynamic function from a jitpack library ? My use case is: I developed an android app (30MB due to product requirement) which i want to share with third party vendors. i cannot share my ...
Pardeep Sharma's user avatar
0 votes
0 answers
29 views

fluid buttom naviagtion in latest android studio

i am trying to add following library in my latest(electric eel) android studio " implementation 'com.github.10clouds:FluidBottomNavigation-android:1.2'",it requires to add "maven { url ...
M.Salman Nazeer's user avatar
0 votes
0 answers
18 views

Empty module after importing library from github

I just tried importing a library from GitHub and when I followed the steps to import it I noticed that the modules are empty and I can't do all of the steps to import the library because of that. Is ...
IdH's user avatar
  • 31
0 votes
1 answer
139 views

How to set name of AAR output from Gradle 7

It's a highly discussed problem on SO, but I couldn't find an up-to-date solution after hours of searching. Sadly I can't add comments anywhere. I'm setting the versionName and versionCode in my build....
Schattennarr's user avatar
1 vote
3 answers
254 views

Error while uploading my library into jitpack

Am trying to publish my app into jitpack from git, the library working locally well in android java, but not working once uploaded to jitpack. jipack log is in red color icon. After implementing the ...
Peppty's user avatar
  • 11
0 votes
1 answer
67 views

Is there any way I can log network calls been triggered from the SDK/Android libraries in my app

I am developing an Android SDK/library, In here I am performing several network calls. But I don't want the Application developer(who uses my SDK) can log the network calls I performed from my sdk. As ...
Tareq Islam's user avatar
0 votes
1 answer
107 views

Library work in java file but not found in xml file

I am on android studio dolphin 2021.3.1 patch 1 and I'm trying to use mukeshsolanki.otpview from GitHub, in the java file the library is imported and works perfectly but when I try to use it in the ...
BilalSylver's user avatar
1 vote
0 answers
79 views

CMake include native library build as external project in Android library

I want to create a simple android library that only contains a shared native library, which is supposed to get loaded via System.loadLibrary at a later step. However I'm not able to add my external ...
fafre's user avatar
  • 21
0 votes
1 answer
45 views

When creating a library in Android, the res folder is not created in the new module

When creating a new module to create a new library, a res folder is not created in the new module, but in the tutorials on the Internet, this folder is created automatically. How do I fix this problem?...
Hosein.m.barazandeh's user avatar
0 votes
0 answers
34 views

How to check the usage / interaction with jitpack / maven library?

Is it possible to find any statistics regarding the implementation, usage and interaction with a published library on nitpick or maven or whatever central repository there is? If yes, please give some ...
radus14's user avatar
  • 132
1 vote
0 answers
73 views

How to make react native component as a android library

Here I want to use react-native component into existing Android native application swith callback and other controls.like an android library But I can't integrate existing Android native project into ...
Asid's user avatar
  • 33
0 votes
1 answer
94 views

How to make modules/library resources private android

I do according to documentation module common created res/values/public.xml <resources> <public name="app_name" type="string"/> </resources> Also tried <...
Arman's user avatar
  • 23
0 votes
1 answer
260 views

How to bundle a library inside another library in Android Studio

So, basically I have multiple modules say Module A, B, C App dependes on Module A Module A depends on Module B & C. While generating the aar or publishing the aar, I don't want users to import ...
virat's user avatar
  • 43
0 votes
1 answer
113 views

Cannot resolve symbol when accessing resources from library module in androidTest of application

I am writing an android test for an android application, and I need to access resource id's that are inside a dependent library project. But the id's cannot be resolved. I'm unable to access the ...
Kjetil Eide's user avatar
  • 1,404
0 votes
2 answers
38 views

android libraries errors

i am working on an android studio project, when i run the project it crashes immedietly, i tried to debug and i found that the problem is in the methods i use from the android libraries as in the pic ...
hala.khazer's user avatar
0 votes
0 answers
54 views

is it possible to run android sdk on completely isolated environment?

is it possible to run my sdk completely on new isolated environment (different snadbox), where SDKs process and data can NOT be shared or accessed form the app module -expect the sdk api-, as if they ...
hassan alwizrah's user avatar
0 votes
0 answers
505 views

How do i include my own built shared library in Android.bp

I compiled my library via this Android.bp code : cc_library_shared { name: "libult123", shared_libs: [ "android.hardware.graphics.allocator@3.0", "...
Shekhar Chauhan's user avatar
1 vote
0 answers
22 views

Android Headless / GUI less Brower/library for android for getting data from the web [web scraping ]

I am working on an app that programmatically fills a form on a website and returns the response to the app. to do this I am currently using html unit android. it works fine but html unit doesn't work ...
Maruf Rien's user avatar
0 votes
3 answers
74 views

Android app not working on android 6 (marshmallow) but working on other android versions classNotFoundException

I am trying to make an HTTP call to a server to get its HTML contents everything is working fine on other android versions. But in android 6 when the app is calling HTMLunit it crashes. I know it has ...
Maruf Rien's user avatar
0 votes
0 answers
109 views

using R8 to hide private and internal methods from android library

i have written android library. but when i integrate aar into client app. i can actually see private/internal/public methods of "public" classes. what i expect is: it should show only "...
Matrix's user avatar
  • 7,447
2 votes
1 answer
256 views

How can I pass data from my android library to my app after network calls?

I have made a library that makes a network call and fills a data class on success data class someData( val id: String, val name: String, ) I'm using moshi and retrofit for the network calls ...
gmate's user avatar
  • 31
0 votes
0 answers
24 views

Where does the lib-X folder come from in android app

Please help with a fast question. We have an Android Application, and we added the tracking to see how the internal storage is used. Then we received a list of files & folders from the user's ...
Mr Mike's user avatar
  • 899
0 votes
0 answers
108 views

cannot find symbol import androidx.core.uwb;

Im trying to import the library androidx.core.uwb but for some reason it keeps throwing an error cannot find symbol. i have added the dependacy to the gradle : implementation "androidx.core.uwb:...
san phil's user avatar
0 votes
0 answers
27 views

Android SDK Development - Inject Views into host app

I'm working on an Android library with a need to show some UI elements in or over the hosting app. The web version of this library simply adds a banner message to the top of the screen, but I'm unsure ...
devian747's user avatar
0 votes
0 answers
29 views

How to prevent from reaching breakpoints in android library project

I've created an android closed source library with java that enabled the ProGuard rule. In a class I have a byte array variable which is very important and no one should see its value. I pass the byte ...
Sajjad Alizadeh's user avatar
1 vote
1 answer
288 views

Error cannot resolve class ' library' in xml file

I want this library but keep getting error in the layout ' cannot resolve class devs.mulham.horizontalcalendar.HorizontalCalendarView ' and 'Class referenced in the layout file, devs.mulham....
Userint2122's user avatar

1
2 3 4 5
38