Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build successful with error - dump failed because assets could not be loaded #956

Open
omeratt opened this issue Feb 12, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@omeratt
Copy link
Collaborator

omeratt commented Feb 12, 2025

i try to run android, the Android build successful, but i still getting errors.

i got an error when i try to run android in react native 0.75.3 with the new radon ide (1.3.0) i go error

2025-02-12 09:39:33.637 [info] Starting Android build
2025-02-12 09:39:40.473 [info] Android build successful

2025-02-12 09:39:40.485 [error] Error: Command failed with exit code 1: /Users/omeratias/Library/Android/sdk/build-tools/35.0.1/aapt dump badging /Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk
02-12 09:39:40.484 88418 614074 W asset : Asset path /Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1).

ERROR: dump failed because assets could not be loaded
at makeError (/Users/omeratias/.vscode/extensions/swmansion.react-native-ide-1.3.0-darwin-arm64/dist/extension.js:34065:17)
at handlePromise (/Users/omeratias/.vscode/extensions/swmansion.react-native-ide-1.3.0-darwin-arm64/dist/extension.js:34832:33)
at processTicksAndRejections (node:internal/process/task_queues:95:5) Subprocess /Users/omeratias/Library/Android/sdk/build-tools/35.0.1/aapt dump badging /Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk execution resulted in an error:
2025-02-12 09:39:40.485 [error] Error: Command failed with exit code 1: /Users/omeratias/Library/Android/sdk/build-tools/35.0.1/aapt dump badging /Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk
02-12 09:39:40.484 88418 614074 W asset : Asset path /Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1).

ERROR: dump failed because assets could not be loaded
at makeError (/Users/omeratias/.vscode/extensions/swmansion.react-native-ide-1.3.0-darwin-arm64/dist/extension.js:34065:17)
at handlePromise (/Users/omeratias/.vscode/extensions/swmansion.react-native-ide-1.3.0-darwin-arm64/dist/extension.js:34832:33)
at processTicksAndRejections (node:internal/process/task_queues:95:5) Couldn't start device session
2025-02-12 09:39:40.485 [error] Error: Command failed with exit code 1: /Users/omeratias/Library/Android/sdk/build-tools/35.0.1/aapt dump badging /Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk
02-12 09:39:40.484 88418 614074 W asset : Asset path /Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1).

ERROR: dump failed because assets could not be loaded
at makeError (/Users/omeratias/.vscode/extensions/swmansion.react-native-ide-1.3.0-darwin-arm64/dist/extension.js:34065:17)
at handlePromise (/Users/omeratias/.vscode/extensions/swmansion.react-native-ide-1.3.0-darwin-arm64/dist/extension.js:34832:33)
at processTicksAndRejections (node:internal/process/task_queues:95:5) Unhandled promise rejection

Environment

react-native: 0.75.3
node:18
os: macos 14

i try to run ios with default configuration of radon ide

  • Version of currently used Radon IDE : 1.3.0
  • Version of React Native/Expo used in the project: bare react native 0.75.3
@omeratt omeratt added the bug Something isn't working label Feb 12, 2025
@omeratt
Copy link
Collaborator Author

omeratt commented Feb 16, 2025

the main problem is that the ide is looking for app-debug as described in my output:
/Users/omeratias/Documents/omer/clones/aimobile2023/android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1).

Image

if you look at my files hierarchy, u can see that i dont have any app-debug.apk, but i can confirm that if i take the app-universal-debug.apk and change his name to app-debug.apk, and then run the build again, its work as aspected...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant