Open arun28082007 opened 6 months ago
Are you running a project located in external storage? Try moving the project to a directory with executing permission, $HOME
for example.
Earlier I had created the project in external storage. But After reading your comment, I created a project in $Home and this error is coming.
Log is here 👇 flutter_02.log
Earlier I had created the project in external storage. But After reading your comment, I created a project in $Home and this error is coming.
Log is here 👇 flutter_02.log
Does your project contain any native codes with other platform abi? This android-sdk
doesn't support cross build.
NO,
I just create new app from
flutter create myapp
and then flutter build apk --debug
To try my app but error occurred
✗ Android license status unknown.
Run flutter doctor --android-licenses
to accept the SDK licenses. And then run flutter doctor -v
again to check this error.
ProcessException: ProcessException: strerror_r failed
Please enter <your-project>/android
and run ./gradlew -q -Ptarget-platform=android-arm,android-arm64,android-x64 -Ptarget=lib/main.dart -Pbase-application-name=android.app.Application -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false assembleDebug -s
for more detailed message.
When I run flutter doctor --android-licenses
this error comes
run $PREFIX/opt/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses
and termux-info
(install with apt install termux-info
if it doesn't exist)
$PREFIX/opt/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses
says all licences accepted
termux-info
output is below 👇
Termux Variables: TERMUX_APK_RELEASE=GITHUB TERMUX_APP_PACKAGE_MANAGER=apt TERMUX_APP_PID=9569 TERMUX_IS_DEBUGGABLE_BUILD=1 TERMUX_MAIN_PACKAGE_FORMAT=debian TERMUX_VERSION=0.118.0 TERMUX__USER_ID=0 Packages CPU architecture: aarch64 Subscribed repositories:
deb https://packages-cf.termux.dev/apt/termux-main/ stable main
deb https://packages-cf.termux.dev/apt/termux-x11/ x11 main Updatable packages: All packages up to date termux-tools version: 1.40.7 Android version: 14 Kernel build information: Linux localhost 5.10.168-android12-9-00001-g81e7418c6466-ab10486262 #1 SMP PREEMPT Wed Jul 12 13:56:37 UTC 2023 aarch64 Android Device manufacturer: Xiaomi Device model: 22071219CI LD Variables: LD_LIBRARY_PATH= LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
But same error occurred nothing changed 😕
https://github.com/mumumusuc/termux-flutter/issues/23#issuecomment-1902095738
It looks like Android 14 is going to have this problem, I think it's something wrong with the dart
but I can't do anything about it, I don't have an Android 14 device to test it on. Sorry about that.
I got this error everytime when I build for Android
This is error log below 👇
flutter_04.log