dart run serious_python:main package --asset assets/python.zip python --mobile
error log on deploy:
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
ERROR:D:\BigBoi\Github\flutter_application_1\build\path_provider_android\intermediates\runtime_library_classes_jar\debug\classes.jar: D8: java.lang.NullPointerException
D:\BigBoi\Android\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-strip.exe: error: 'D:\BigBoi\Github\flutter_application_1\build\serious_python_android\intermediates\merged_native_libs\debug\out\lib\arm64-v8a\libpythonbundle.so': The file was not recognized as a valid object file
D:\BigBoi\Android\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-strip.exe: error: 'D:\BigBoi\Github\flutter_application_1\build\serious_python_android\intermediates\merged_native_libs\debug\out\lib\armeabi-v7a\libpythonbundle.so': The file was not recognized as a valid object file
D:\BigBoi\Android\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-strip.exe: error: 'D:\BigBoi\Github\flutter_application_1\build\serious_python_android\intermediates\merged_native_libs\debug\out\lib\x86_64\libpythonbundle.so': The file was not recognized as a valid object file
D:\BigBoi\Android\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-strip.exe: error: 'D:\BigBoi\Github\flutter_application_1\build\app\intermediates\merged_native_libs\debug\out\lib\armeabi-v7a\libpythonbundle.so': The file was not recognized as a valid object file
D:\BigBoi\Android\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-strip.exe: error: 'D:\BigBoi\Github\flutter_application_1\build\app\intermediates\merged_native_libs\debug\out\lib\arm64-v8a\libpythonbundle.so': The file was not recognized as a valid object file
D:\BigBoi\Android\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-strip.exe: error: 'D:\BigBoi\Github\flutter_application_1\build\app\intermediates\merged_native_libs\debug\out\lib\x86_64\libpythonbundle.so': The file was not recognized as a valid object file
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeLibDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform classes.jar (project :path_provider_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.3.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for DexingWithClasspathTransform: D:\BigBoi\Github\flutter_application_1\build\path_provider_android\intermediates\runtime_library_classes_jar\debug\classes.jar.
> Error while dexing.
* 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 51s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1).
pubspec.yaml:
name: flutter_application_1
description: "A new Flutter project."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: '>=3.4.1 <4.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
serious_python: ^0.7.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_launcher_icons: ^0.13.1
flutter:
uses-material-design: true
assets:
- assets/python.zip
flutter_launcher_icons:
ios: true
android: true
adaptive_icon_background: "#000000"
adaptive_icon_foreground: "images/app.png"
image_path: "images/app.png"
I have followed the setup process from the readme
cmd used:
error log on deploy:
pubspec.yaml:
main.dart:
main.py
default andoird/app/build.gradle
default android/gradle.properties:
flutter doctor -v