Code Monkey home page Code Monkey logo

Comments (4)

Tanzin01 avatar Tanzin01 commented on August 25, 2024 1

Got it. Thanks.

from filekit.

vinceglb avatar vinceglb commented on August 25, 2024

Sorry, I'm not sure to understand your issue.

On Android apps, based on XML or not, we are able to change minsdk version.

Can you describe your problem a little more?

from filekit.

Tanzin01 avatar Tanzin01 commented on August 25, 2024

My apology, not a english speaker.

I meant , i tried the library on a xml based android app which had a minSdk 21 but gradle was complaning pickerKotlin library had set its own minsdk to 24. Thus i cant use the library unless i set my minSdk to 24.
Let me post the error.

app:processDebugMainManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 24 declared in library [io.github.vinceglb:picker-core-android:0.2.0] /data/data/com.itsaky.androidide/files/home/.gradle/caches/transforms-4/d4ef3309bf3cee7474edaaff30a1b4f9/transformed/picker-core-release/AndroidManifest.xml as the library might be using APIs not available in 16
  	Suggestion: use a compatible library with a minSdk of at most 16,
  		or increase this project's minSdk version to at least 24,
  		or use tools:overrideLibrary="io.github.vinceglb.picker" to force usage (may lead to runtime failures)

I noticed the title lacks a semi colon . Will change it.

from filekit.

vinceglb avatar vinceglb commented on August 25, 2024

I have lowered the minSdk to enable using it with android minSdk 21 (it was 24 earlier).

To update, use the version 0.2.1: implementation("io.github.vinceglb:picker-core:0.2.1")

And also, in your build.gradle, make sure to set minSdk = 21 like:

android {
	namespace = "..."
	compileSdk = 34

	defaultConfig {
		minSdk = 21            // <-- put 21 here
		targetSdk = 34
	}

        ...

Android API 16 to 20 are not supported by the library.

from filekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.