mumumusuc / termux-android-sdk

GNU General Public License v3.0
5 stars 0 forks source link

Error on Android build #3

Open arun28082007 opened 6 months ago

arun28082007 commented 6 months ago

Screenshot_2024-03-04-12-04-42-583_com termux

I got this error everytime when I build for Android

This is error log below 👇

flutter_04.log

mumumusuc commented 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.

arun28082007 commented 6 months ago

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.

Screenshot_2024-03-05-18-19-09-459_com termux

Log is here 👇 flutter_02.log

mumumusuc commented 6 months ago

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.

Screenshot_2024-03-05-18-19-09-459_com termux

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.

arun28082007 commented 6 months ago

NO, I just create new app from flutter create myapp and then flutter build apk --debug To try my app but error occurred

mumumusuc commented 6 months ago

✗ 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.

arun28082007 commented 6 months ago

When I run flutter doctor --android-licenses this error comes Screenshot_2024-03-05-22-22-17-437_com termux

mumumusuc commented 6 months ago

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)

arun28082007 commented 6 months ago

$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:

sources.list

deb https://packages-cf.termux.dev/apt/termux-main/ stable main

x11-repo (sources.list.d/x11.list)

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 😕

mumumusuc commented 6 months ago

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.