1. Home
  2. Handbook
  3. Fix build errors

// handbook · understand the build

APK build failed? 9 common causes and fixes

When a build fails or the app opens to a blank screen, the cause is almost always in the files, not the builder. Work through this list in order.

updated · 3 min read · APK Builder team

Short answerMost failed or blank builds come from: no index.html at the top of the ZIP, the site nested inside an extra folder, the bundle exceeding the size limit, file names with spaces or wrong letter case, absolute paths starting with /, or scripts loaded from a CDN that isn't reachable offline.

The checklist

#SymptomCauseFix
1Build rejected or app shows "page not found"No index.html at the top levelRename your start page to index.html
2Same as above, but index.html existsZIP contains my-site/index.htmlZip the folder's contents, not the folder
3Upload refusedBundle over the limit (5 MB free, 18 MB Pro)Compress images, remove videos and unused files
4Images or CSS missing in the appPaths start with /Use relative paths like css/app.css
5Works on your computer, broken on the phoneLetter case: Logo.PNG vs logo.pngMatch case exactly; use lower-case names
6Some files ignoredSpaces, # or ? in file namesUse letters, numbers, - and _ only
7Blank screen with no signalLibraries or fonts loaded from a CDNDownload them into the ZIP
8Blank screen alwaysJavaScript error on load, or ES modules needing a serverTest locally; bundle modules into one script
9App needs network on first launchService worker or fetch() to absolute URLsRemove the service worker; fetch relative files

Check your ZIP before uploading

  1. Open the ZIP: the first thing you see should be index.html, not a folder.
  2. Search your HTML and CSS for src="/, href="/ and url(/.
  3. Search for https:// — every hit is something that needs the internet.
  4. Sort by size: anything over 1 MB deserves a second look.

A note on ES modules and fetch()

Bundled pages are often loaded from a local origin with stricter rules than a web server. <script type="module"> and fetch('data.json') can fail when the page is opened directly from files. The reliable approach is the one our blueprints use: plain scripts, and data in a .js file that sets a variable instead of a JSON file you fetch. Build tools like Vite can output a non-module build if you set a relative base.

URL builds that fail

  • The site needs a login wall first — Google sign-in doesn't work inside web views; offer email sign-in.
  • http:// address — Android blocks cleartext traffic by default. Use https.
  • Bot protection blocks the app on every launch — allow-list it in your firewall or CDN settings.

Debugging a blank screen step by step

  1. Open the ZIP's index.html in a desktop browser straight from the folder (double-click). If it's blank there too, the problem is in your files.
  2. Open DevTools → Console. Red errors such as Failed to load resource name the exact file and path that's wrong.
  3. Turn off Wi-Fi and reload. Anything that disappears was loaded from the internet.
  4. Use a phone-sized viewport (DevTools device toolbar) to catch layouts that only break on narrow screens.
  5. Simplify: temporarily replace index.html with a one-line "Hello" page and build. If that works, the builder is fine and the issue is in your page.

Prevent it next time

Keep a habit of building from a clean folder: only the files the app needs, lower-case names, relative paths and no service worker. Our blueprints follow all of these rules, so they're a good reference when your own project misbehaves.

Questions

Why is my APK a blank white screen?

Usually the start page isn't at the top of the ZIP, a path starts with /, or a script fails to load offline. Check the list in order.

Why do my images show on the computer but not in the app?

Phones treat file names as case-sensitive, and absolute paths beginning with / point to the wrong place. Use lower-case, relative paths.

What is the maximum size?

On our builders: 5 MB of bundled files free and 18 MB with Pro.

Read next

// ready when you are

Build your APK — free.

No Android Studio, no code, no watermark. Pick your input: