flutter_in_termux icon indicating copy to clipboard operation
flutter_in_termux copied to clipboard

Not working , waste of time and data.

Open ask9027 opened this issue 3 years ago • 3 comments

Error while build

root@localhost:~/example# flutter build apk --release --target-platform android-arm64 Woah! You appear to be trying to run flutter as root. We strongly recommend running the flutter tool without superuser privileges. / 📎 Downloading android-arm-profile/linux-x64 tools... 11.9s Downloading android-arm-release/linux-x64 tools... 5.1s Downloading android-arm64-profile/linux-x64 tools... 5.0s Downloading android-arm64-release/linux-x64 tools... 3.1s Downloading android-x64-profile/linux-x64 tools... 5.1s Downloading android-x64-release/linux-x64 tools... 4.4s 💪 Building with sound null safety 💪 Woah! You appear to be trying to run flutter as root. We strongly recommend running the flutter tool without superuser privileges. / 📎 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeReleaseResources'. > Multiple task action failures occurred: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #5: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #0: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #4: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #2: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #3: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #1: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #7: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-linux Daemon #6: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does.

  • 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 7m 6s Running Gradle task 'assembleRelease'...

ask9027 avatar Mar 03 '22 22:03 ask9027

You should make proper video on it , not just in air..

ask9027 avatar Mar 03 '22 22:03 ask9027

Maybe late but checkout https://github.com/Lzhiyong/termux-ndk/issues/86

j0ng4b avatar Jun 05 '22 04:06 j0ng4b

I passed with the following commands:

cd ~/.gradle
cd caches/modules-2/files-2.1/com.android.tools.build/aapt2/4.1.0-6503028/3eef4cc7721d5cf9c7d13dc9b24fd110cad47802
unzip aapt2-4.1.0-6503028-linux.jar
rm aapt2 #Replace it
cp /usr/share/android-sdk/build-tools/32.0.0/aapt2 .
rm aapt2-4.1.0-6503028-linux.jar
zip aapt2-4.1.0-6503028-linux.jar * #Zip everything back
rm -rf META-INF NOTICE aapt2

sls1005 avatar Sep 13 '22 14:09 sls1005