Closed Saqib92 closed 2 years ago
Not compiling for android. Here is the repo: https://github.com/Saqib92/capacitor-screen-recording
Some Logs:
> Task :capacitor-cordova-android-plugins:parseDebugLocalResources
[capacitor]
[capacitor] > Task :app:processDebugMainManifest FAILED
[capacitor] /Users/fahadaslam/Desktop/ionic/screenrecording/android/app/src/main/AndroidManifest.xml Error:
[capacitor] uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [dev.bmcreations:scrcast:0.3.0] /Users/fahadaslam/.gradle/caches/transforms-3/13f7194419035ce2320a491a073ec1e3/transformed/jetified-scrcast-0.3.0/AndroidManifest.xml as the library might be using APIs not available in 21
[capacitor] Suggestion: use a compatible library with a minSdk of at most 21,
[capacitor] or increase this project's minSdk version to at least 23,
[capacitor] or use tools:overrideLibrary="dev.bmcreations.scrcast" to force usage (may lead to runtime failures)
[capacitor]
[capacitor] See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
[capacitor]
[capacitor]
[capacitor] FAILURE: Build failed with an exception.
[capacitor]
[capacitor] * What went wrong:
[capacitor] Execution failed for task ':app:processDebugMainManifest'.
[capacitor] > Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [dev.bmcreations:scrcast:0.3.0] /Users/fahadaslam/.gradle/caches/transforms-3/13f7194419035ce2320a491a073ec1e3/transformed/jetified-scrcast-0.3.0/AndroidManifest.xml as the library might be using APIs not available in 21
[capacitor] Suggestion: use a compatible library with a minSdk of at most 21,
[capacitor] or increase this project's minSdk version to at least 23,
[capacitor] or use tools:overrideLibrary="dev.bmcreations.scrcast" to force usage (may lead to runtime failures)
[capacitor]
[capacitor] * Try:
[capacitor] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[capacitor]
[capacitor] * Get more help at https://help.gradle.org
[capacitor]
[capacitor] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
@Saqib92 did you try to increase minSdk to 23 as said in the logs ? i will add to the doc it should be made, thanks for the report
No I didn't give enough time to this project that time. But will do as you mentioned.
Some how i managed to make the build. but the Application gets crashed on start recording.
@Saqib92 i did check and i found issue in a lib i use, it had to add empty init option, it looks to work now.
Can you try the v1.1.4
?
1.1.4
it is Working Now. Thanks. and Here is the Example Repo you can add to Docs: Working Example: https://github.com/Saqib92/capacitor-screen-recording
hello sorry i never saw your issue ! I will check on android again. Could you tell me a bit more about what was not working ?