endmr11 / ed_screen_recorder

Screen recorder plugin for Flutter. Supports IOS and Android devices.
MIT License
26 stars 36 forks source link

Unable to generate the Android build using latest using this plugin. #15

Open hemandroid opened 2 years ago

hemandroid commented 2 years ago

Hi there,

Thanks for the latest update on supporting the Pause and Resume features. But we are unable to build the apk due to the plugin related errors.

Please check the log response and do the needful.


Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ed_screen_recorder:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/hemandroid/.gradle/caches/transforms-3/ec8778f597115131b77fc5968136215d/transformed/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.```
endmr11 commented 2 years ago

Try please: ./gradlew clean && ./gradlew assembleRelease

hemandroid commented 2 years ago

@endmr11 I did as you mentioned, please check the below log response after performing those two commands

Note: /Users/hemandroid/flutter_sdk/flutter/.pub-cache/hosted/pub.dartlang.org/ed_screen_recorder-0.0.11/android/src/main/java/com/ed_screen_recorder/ed_screen_recorder/EdScreenRecorderPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :app:compressReleaseAssets
Execution optimizations have been disabled for task ':app:compressReleaseAssets' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/hemandroid/mobile_projects/bug_recorder/build/app/intermediates/assets/release/mergeReleaseAssets'. Reason: Task ':app:compressReleaseAssets' uses this output of task ':app:copyFlutterAssetsRelease' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

> Task :ed_screen_recorder:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ed_screen_recorder:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/hemandroid/.gradle/caches/transforms-3/ec8778f597115131b77fc5968136215d/transformed/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

* Try:
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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.

BUILD FAILED in 1m 4s
284 actionable tasks: 68 executed, 216 up-to-date
endmr11 commented 2 years ago

Which your use to Flutter version?