Open ElementioICE opened 1 year ago
I tried adding the ndkVersion line but i still get:
Launching lib\main.dart on sdk gphone x86 64 in debug mode... Running Gradle task 'assembleDebug'... Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:processDebugMainManifest'.
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @806171c
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
BUILD FAILED in 5s Exception: Gradle task assembleDebug failed with exit code 1
Set in gradle.properties this code
org.gradle.jvmargs=-Xmx1536M \
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
I'm trying to build the app for android, but i when i do i get:
Launching lib\main.dart on sdk gphone x86 64 in debug mode... Upgrading build.gradle Conflict detected between Android Studio Java version and Gradle version, upgrading Gradle version from 6.7 to 7.6.1. Upgrading gradle-wrapper.properties Running Gradle task 'assembleDebug'... One or more plugins require a higher Android NDK version. Fix this issue by adding the following to C:\Users\Gabriel\development\flutter_gstreamer_player-master\example\android\app\build.gradle: android { ndkVersion "21.4.7075529" ... }
Checking the license for package Android SDK Build-Tools 29.0.2 in C:\Users\Gabriel\AppData\Local\Android\Sdk\licenses License for package Android SDK Build-Tools 29.0.2 accepted. Preparing "Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)". "Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" ready. Installing Android SDK Build-Tools 29.0.2 in C:\Users\Gabriel\AppData\Local\Android\Sdk\build-tools\29.0.2 "Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" complete. "Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" finished.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:processDebugMainManifest'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 2m 25s Exception: Gradle task assembleDebug failed with exit code 1
I'm using Gstreamer android 1.20.1 like in the example and OpenJDK 11.0.18 2023-01-17. I'm on Windows 11, but I also tried on Linux and I can get the Linux desktop app working, but not the android one.