capacitor-community / sqlite

Community plugin for native & electron SQLite databases
MIT License
433 stars 106 forks source link

how to install sqlite plugin in CAPACITOR 4 ? #452

Closed sksk008 closed 9 months ago

sksk008 commented 9 months ago

try to install this plugin in cap 4 and build failed with this below error (i am gatting error even i try to install sqlite 4.0.1)

4 issues were found when checking AAR metadata:

  1. Dependency 'androidx.room:room-runtime:2.5.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).

  2. Dependency 'androidx.sqlite:sqlite-framework:2.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).

  3. Dependency 'androidx.sqlite:sqlite:2.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).

  4. Dependency 'androidx.security:security-crypto:1.1.0-alpha05' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on). 4 issues were found when checking AAR metadata:

  5. Dependency 'androidx.room:room-runtime:2.5.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).

  6. Dependency 'androidx.sqlite:sqlite-framework:2.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).

  7. Dependency 'androidx.sqlite:sqlite:2.3.0' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).

  8. Dependency 'androidx.security:security-crypto:1.1.0-alpha05' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

    :app is currently compiled against android-32.

    Also, the maximum recommended compile SDK version for Android Gradle plugin 7.2.1 is 32.

    Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.

    Note that updating a library or application's compileSdkVersion (which allows newer APIs to be used) can be done separately from updating targetSdkVersion (which opts the app in to new runtime behavior) and minSdkVersion (which determines which devices the app can be installed on).

jepiqueau commented 9 months ago

@krunalsk007 npm i --save @capacitor-community/sqlite@4.8.0 i will encourage you to use it with Capacitor 5 and the latest version of @capacitor-community/sqlite. which is the only one maintained.

jepiqueau commented 9 months ago

@krunalsk007 Any news ?

sksk008 commented 9 months ago

no we have decide to convert our app in capacitor 5 and then use sqlite@5 in app.