Android build apk

After eject expo project to bare workflow (SDK 37) and run expo publish
I try to build apk but get this error all the time.
Use this command gradlew bundleRelease in folder /android
But wat such a command works correctly gradlew bundleDebug
What am I doing wrong ?

buildTypes {

        debug {

            signingConfig signingConfigs.debug


        release {

            // Caution! In production, you need to generate your own keystore file.

            // see

            signingConfig signingConfigs.release

            minifyEnabled enableProguardInReleaseBuilds

            proguardFiles getDefaultProguardFile("proguard-android.txt"), ""




E:\WorkFlow\ReactNative\Test2>expo bundle-assets E:\WorkFlow\ReactNative\Test2 --platform android --dest E:\WorkFlow\ReactNative\Test2\android\app\build\intermediates\merged_assets\release\out
[08:28:11] Error: The manifest at 'E:\WorkFlow\ReactNative\Test2\android\app\src\main\assets\app.manifest' was empty or invalid.
[08:28:11] Before making a release build, make sure you have run 'expo publish' at least once. Learn more. (тАЛтАЛ)

> Task :app:bundleReleaseExpoUpdatesAssets FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:bundleReleaseExpoUpdatesAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1

If I create a file app.manifest manually, the assembly happens but the assembled APK immediately crashes. (debug APK work perfect)
Logcat message

 Process: com.nidra, PID: 5632
    java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no colon was found
        at okhttp3.HttpUrl$Builder.parse(
        at okhttp3.HttpUrl.get(
        at okhttp3.Request$Builder.url(
        at expo.modules.updates.loader.FileDownloader.addHeadersToManifestUrl(
        at expo.modules.updates.loader.FileDownloader.downloadManifest(
        at expo.modules.updates.loader.RemoteLoader.start(
        at expo.modules.updates.UpdatesController.lambda$start$0$UpdatesController(
        at expo.modules.updates.-$$Lambda$UpdatesController$ Source:6)
        at android.os.AsyncTask$SerialExecutor$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

I have same issue.
How to create app.manifest manually?
Please tell me.

1 Like

After execute command expo publish i see url to app.manifest in cmd log

After eject, why do we have to run expo publish can’t we user react-native bundle command to generate bundle command.
Please help me understand expo eject true meaning expo team.
If i try to build without app.bundle & app.manifest Task :app:bundleReleaseExpoUpdatesAssets fails, why is this task required?