question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build new project

See original GitHub issue

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

  1. Run npm init
  2. Run npm install --save-dev @bubblewrap/cli
  3. Run npx bubblewrap init --manifest https://my-twa.com/manifest.json. Accept defaults when prompted
  4. Edit package.json to include "build": "bubblewrap build" in scripts
  5. Run npm run build
  6. 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
andrebancommented, Jan 8, 2021

Sorry for the delay here, this dropped from my radar.

Can you try:

  • Update to the latest version of Bubblewrap (1.8.2)
  • Then, run bubblewrap update
  • Then bubblewrap build

Andre

0reactions
ravinggeniuscommented, Mar 22, 2021

I finally got back on this task for work. The update appears to be working now. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found