Unable to build new project
See original GitHub issueDescribe the bug
I’m following the quick start guide. Building a brand new app fails with a cryptic error (below). I got through bubblewrap init
with no issues.
To Reproduce
Steps to reproduce the behavior:
- Run
npm init
- Run
npm install --save-dev @bubblewrap/cli
- Run
npx bubblewrap init --manifest https://my-twa.com/manifest.json
. Accept defaults when prompted - Edit
package.json
to include"build": "bubblewrap build"
inscripts
- Run
npm run build
- See error
Expected behavior
I expected to receive an .apk
and the assetlinks.json
artifact after building.
Screenshots
➤ npm run build
> frontend-twa-test@1.0.0 build /Users/ravinggenius/Code/frontend-twa-test
> bubblewrap build
,-----. ,--. ,--. ,--.
| |) /_,--.,--| |-.| |-.| |,---.,--. ,--,--.--.,--,--.,---.
| .-. | || | .-. | .-. | | .-. | |.'.| | .--' ,-. | .-. |
| '--' ' '' | `-' | `-' | \ --| .'. | | \ '-' | '-' '
`------' `----' `---' `---'`--'`----'--' '--`--' `--`--| |-'
`--'
(node:60469) ExperimentalWarning: The fs.promises API is experimental
Please, enter passwords for the keystore ./android.keystore and alias android.
? Password for the Key Store: **************************************
? Password for the Key: **************************************
Building the Android App...
cli ERROR Command failed: "/Users/ravinggenius/Library/Android/sdk/build-tools/29.0.2/zipalign" -v -f -p 4 ./app/build/outputs/apk/release/app-release-unsigned.apk ./app-release-unsigned-aligned.apk
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend-twa-test@1.0.0 build: `bubblewrap build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend-twa-test@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ravinggenius/.npm/_logs/2020-11-25T21_04_17_452Z-debug.log
Desktop (please complete the following information):
- OS: macOS Catalina 10.15.7
- Browser: NA
- Version: 1.7.0
Smartphone (please complete the following information):
NA
Additional context
➤ npx bubblewrap doctor
,-----. ,--. ,--. ,--.
| |) /_,--.,--| |-.| |-.| |,---.,--. ,--,--.--.,--,--.,---.
| .-. | || | .-. | .-. | | .-. | |.'.| | .--' ,-. | .-. |
| '--' ' '' | `-' | `-' | \ --| .'. | | \ '-' | '-' '
`------' `----' `---' `---'`--'`----'--' '--`--' `--`--| |-'
`--'
(node:56349) ExperimentalWarning: The fs.promises API is experimental
doctor Your jdkpath and androidSdkPath are valid.
➤ npm ls @bubblewrap/cli
frontend-twa-test@1.0.0 /Users/ravinggenius/Code/frontend-twa-test
└── @bubblewrap/cli@1.7.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Unable to build maven projects from Build > Build Project for ...
I have been facing issues with intellij in that it is completely unable to build/rebuild any maven projects from the IDE.
Read more >Unable to build solution after upgrading to the latest VS 2017 ...
Developer Community. I keep recieving the error messages below on two different machines when compiling a solution: Rebuild All started ... Build Failure....
Read more >Unable to build new project - Radzen Blazor Studio
I just installed the Alpha kit, and created a new server project, which fails to build with the output window showing the error:...
Read more >Xcode can't build a project | Apple Developer Forums
Hello,. project works fine in Xcode 12.5.1, but when I open it in 13.1 to test, I get error when hitting build. First...
Read more >Eclipse: Unable to build the project - Stack Overflow
Try refreshing the project, clean and rebuild. · Right click on the error, click "Quick Fix" if this is enabled. · Right click...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for the delay here, this dropped from my radar.
Can you try:
bubblewrap update
bubblewrap build
Andre
I finally got back on this task for work. The update appears to be working now. Thanks!