About PWAValidator
Free tool by cubiczo.com · No sign-up · PHP 7.2+ · support@cubiczo.com
What is this tool?
PWAValidator helps you turn a Progressive Web App (PWA) into an Android app in three stages. It checks your PWA, creates a Capacitor Android project ZIP, and gives you scripts to build the app on your computer.
🔍 Validate Your PWA
Checks HTTPS, the web app manifest (app name, icons, colors), icons, and service worker (offline support). Shows PWA Build Readiness and Play Store Readiness scores.
📦 Generate Your Android Project
Creates a complete Capacitor 6 Android project with launcher icons, the Gradle wrapper, build scripts, and documentation.
📱 Build Your Android App
Choose a debug APK for testing or direct install, or build an AAB for Google Play. You sign the AAB with your own keystore before upload.
Missing PWA files? The optional PWA Fix Kit can supply a corrected manifest, the required icons, a service worker, and an offline page.
Prerequisites — install these once
You need three free tools on the computer that will build the app. This website cannot detect them from your browser.
| Tool | Version | Why | Download |
|---|---|---|---|
| Java JDK | 17–21 | Compiles the Android app | adoptium.net |
| Node.js | 18 LTS+ | Runs Capacitor and the npm tools | nodejs.org |
| Android SDK | Platform 36 + build-tools 34.0.0 | Provides the Android build files | Command-line tools |
sdkmanager "platforms;android-36" "build-tools;34.0.0" && sdkmanager --licenses
Build Your Android App — No Android Studio Required
Download the project ZIP, extract it, open Command Prompt in the folder, and run one build command. The ZIP includes the Gradle wrapper and the Android project files you need.
- Download the project ZIP. Choose APK Project ZIP for testing or direct install, or AAB Project ZIP for Google Play. Both contain the same Android project. The filename includes your app name, for example
OnX-Reach-APK-Project.zip. - Extract the ZIP. Right-click the download and choose Extract All. Open the extracted folder;
build.batis directly inside it, with no extra project folder to open. - Open Command Prompt there. Click the Explorer address bar, type
cmd, and press Enter. On macOS or Linux, open Terminal in that folder instead. - Build it. Run
build.bat debugfor a test APK orbuild.bat aabfor a Play Store bundle. The app-named files are normally inoutput\, for exampleoutput\OnX-Reach-debug.apkandoutput\OnX-Reach-release.aab; confirm the final path printed by the script. The default AAB may be unsigned, so complete release signing and verify the signed output before uploading to Google Play.
setup_check.bat (or ./setup_check.sh) if a build cannot find Java, Node.js, the Gradle wrapper, or the Android SDK. It is not a required step.Build a debug APK (for testing or direct install)
Build a debug APK (testing / direct install)
- Install the prerequisites — JDK 17, Node.js 18+, Android SDK platform 36, and build-tools 34.0.0.
- Check the environment (optional) —
setup_check.bat(Windows) or./setup_check.sh(Linux/macOS) checks Java, Node.js, the Gradle wrapper, the plugins, and the Android SDK. Skip this if the build already works. - Build the debug APK — Run
build.bat debug(or./build.sh debug). The debug APK is intended for installation and testing on an Android device; it is not the file you upload to Google Play. The script runsnpm install,npx cap sync android, finds the SDK, then runsgradlew assembleDebug. - Collect the APK — The build script normally places the generated APK in the project's
output\folder, for exampleoutput\OnX-Reach-debug.apk(Linux/macOS:output/OnX-Reach-debug.apk). Confirm the final path printed by the script. The normal Gradle file remains atandroid\app\build\outputs\apk\debug\app-debug.apk.
android/local.properties already points to a working SDK, the build keeps it. Otherwise build.bat / build.sh look for ANDROID_HOME, ANDROID_SDK_ROOT, and common locations such as %LOCALAPPDATA%\Android\Sdk on Windows. They only update android/local.properties when the old value is missing or invalid, and stop with clear instructions if no SDK is found.Do not copy
local.properties.example over a working android/local.properties.Manual format (spaces allowed):
sdk.dir=C:/Users/YourName/AppData/Local/Android/SdkCheck without changing anything:
find_sdk.bat --check or ./find_sdk.sh --check.com.yourcompany.appname). It can never be changed after publishing to Play Store.Build and sign an AAB for Google Play
Prepare a signed release AAB (Google Play)
- Test a debug build first — Build the debug APK and install it on a phone to check the main screens and features before preparing a Play Store release. The debug APK is for testing, not distribution.
- Create and back up a keystore — Run this in the extracted project folder so
release.jkssits besideandroid/. The keystore identifies you as the app owner. Keep it private, back it up, and never commit it:keytool -genkey -v -keystore release.jks -alias com.yourcompany.appname -keyalg RSA -keysize 2048 -validity 10000 - Build the Android App Bundle — Run
build.bat aab(or./build.sh aab). This command builds an Android App Bundle for release preparation. The default generated AAB may be unsigned. A successful build does not mean the bundle is signed, ready for production, or approved by Google Play. The script normally copies the AAB tooutput\OnX-Reach-release.aab(Linux/macOS:output/OnX-Reach-release.aab) after Gradle succeeds; confirm the final path printed by the script. Gradle also keeps its normal AAB underandroid\app\build\outputs\bundle\release\. - Sign, verify, then upload — Sign the AAB with your keystore using a Gradle signing config or the command below. The signed file is written under
android\app\build\outputs\bundle\release\. Verify its signature before upload, then upload that signed AAB to the Play Console, starting with Internal testing. Do not upload the earlier unsigned copy inoutput\.
build.bat aab is unsigned until you sign with your keystore. The ZIP does not include a signing key.- Confirm that you have the intended release AAB.
- Complete the appropriate release-signing process.
- Verify that you are uploading the signed release artifact, not the original unsigned AAB.
- Follow the current Google Play Console requirements for app signing and release submission.
Build outputs
| Build | Command | Final output and use |
|---|---|---|
| Debug APK | build.bat debug | output\<app-name>-debug.apk (for example output\OnX-Reach-debug.apk)Install and test on a phone. Do not upload this APK to Google Play. |
| Release APK (unsigned) | build.bat release | output\<app-name>-release-unsigned.apkSign it before installing or distributing. Not the Play Store upload format. |
| Release AAB | build.bat aab | output\<app-name>-release.aab (for example output\OnX-Reach-release.aab)This copy is normally unsigned. Sign and verify the release AAB, then upload the signed file from android\app\build\outputs\bundle\release\. An AAB cannot be installed directly. |
Native sharing (Share + Filesystem)
The project includes the configured @capacitor/share 6.0.4 and @capacitor/filesystem 6.0.4 plugins where supported by the generator, matching Capacitor 6.2.2. npm install installs them and npx cap sync android registers :capacitor-share and :capacitor-filesystem in the Android project. The build scripts verify both plugins before Gradle runs.
navigator.share is using the browser Web Share API, which is not guaranteed inside Android WebView. Test the actual share flow on an Android device.| Case | Browser (Web Share) | Installed Capacitor app |
|---|---|---|
| Plain text | navigator.share where supported | Share.share({ text }) |
| URL | navigator.share where supported | Share.share({ url }) |
| Image / file | Needs browser file-sharing support | Filesystem.writeFile + Share.share({ files: [...] }) |
| Browser only | Works in supporting browsers over HTTPS | Not used; native plugin is required |
| Website without native calls | Existing behavior unchanged | No native sheet; the plugin stays idle |
node -p "require('./node_modules/@capacitor/share/package.json').version" and check android/capacitor.settings.gradle for :capacitor-share / :capacitor-filesystem. If the share sheet cannot open, confirm the APK was rebuilt after npx cap sync android and that the website actually calls Share.share.Troubleshooting
| Problem | Fix |
|---|---|
| SDK location not found | Run find_sdk.bat --check; set ANDROID_HOME or edit android/local.properties. Do not overwrite a working file with local.properties.example. |
| Platform android-36 not found | sdkmanager "platforms;android-36" "build-tools;34.0.0" |
| License not accepted | sdkmanager --licenses |
| Java / JAVA_HOME error | Use JDK 17 (Gradle 8.7 runs on 17–21). |
| gradle-wrapper.jar missing | Re-extract the ZIP (antivirus tools can remove .jar files) or generate a new project. npm does not supply it. |
| Artifact not found in output | The app-named copy is created only after Gradle succeeds and the source artifact exists. Read the final path printed by the build script; the original stays under android/app/build/outputs/. |
| AAB rejected as unsigned | By default, build.bat aab creates an unsigned bundle. Sign the AAB with your keystore before uploading; see the signing steps above. |
| Share/Filesystem plugin missing | Delete node_modules and package-lock.json, run npm install, then npx cap sync android, then rebuild. |
| Share sheet does not open | The remote PWA must call the Capacitor Share API. navigator.share is browser-only and may not exist in Android WebView. See the native sharing notes below. |
Upload to Google Play Store
Developer Account
Register at play.google.com/console. Google charges a $25 one-time registration fee, and account verification can take a few days.
Create App & Store Listing
Add a short description (up to 80 characters), full description, at least two phone screenshots, a 512×512 store icon, and a 1024×500 feature graphic. Google Play may ask for more assets.
Build & Sign the AAB
By default, build.bat aab creates an unsigned AAB. Sign it with your keystore before upload. The ZIP does not include a signing key, and a passing validation score does not guarantee Play approval.
Internal Testing First
Upload the signed AAB to Internal testing, add yourself as a tester, and install the build to check it works before going public.
Publish to Production
Complete the required forms, including content rating, data safety, and a privacy policy where required. Then submit for review. Review time varies.
Common questions
- APK or AAB? Use the APK to test or install the app on a phone. Upload an AAB to Google Play after signing it with your keystore.
- Do I need Android Studio? No. You still need JDK, Node.js, and the Android SDK on the build computer; the ZIP includes the build scripts.
- Does this store my data? Submitted URLs and generated project ZIPs are not saved by the application. A generated ZIP is a temporary file that is removed after download. For rate limiting, the server stores a recent request timestamp in a file named from a hash of the client IP. The PHP error log may contain technical error details. Log retention depends on the server and hosting configuration. Do not submit secrets or private information in URLs or support requests.
- iOS support? The ZIP is Android-only. Capacitor supports iOS too, but building for iOS requires a Mac with Xcode.
- The service worker check warns, but I have one. The checker reads the page HTML. If the service worker is registered in a separate JavaScript file, it may show a warning even when one exists. It does not block the Android build.
- Are the Fix Kit icons ready for Play Store? No. They are placeholders saved with
.pngnames. Replace them with real PNG icons using RealFaviconGenerator before publishing. - Is Capacitor free? Yes. It is open source. Ionic Appflow (optional cloud builds) is a separate paid service.