Cap-go / capacitor-screen-recorder

Record the screen of the phone with native API
https://capgo.app
7 stars 7 forks source link

Not working in android. #1

Closed Saqib92 closed 2 years ago

riderx commented 2 years ago

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 ?

Saqib92 commented 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.
riderx commented 2 years ago

@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

Saqib92 commented 2 years ago

No I didn't give enough time to this project that time. But will do as you mentioned.

Saqib92 commented 2 years ago

Some how i managed to make the build. but the Application gets crashed on start recording.

riderx commented 2 years ago

@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 ?

Saqib92 commented 2 years ago

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