Android build apk

Hello.
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 ?
build.gradle

buildTypes {

        debug {

            signingConfig signingConfigs.debug

        }

        release {

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

            // see https://facebook.github.io/react-native/docs/signed-apk-android.

            signingConfig signingConfigs.release

            minifyEnabled enableProguardInReleaseBuilds

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

        }

    }

Error

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. (тАЛhttps://expo.fyi/release-builds-with-expo-updatesтАЛ)

> 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(HttpUrl.java:1333)
        at okhttp3.HttpUrl.get(HttpUrl.java:916)
        at okhttp3.Request$Builder.url(Request.java:165)
        at expo.modules.updates.loader.FileDownloader.addHeadersToManifestUrl(FileDownloader.java:190)
        at expo.modules.updates.loader.FileDownloader.downloadManifest(FileDownloader.java:79)
        at expo.modules.updates.loader.RemoteLoader.start(RemoteLoader.java:56)
        at expo.modules.updates.UpdatesController.lambda$start$0$UpdatesController(UpdatesController.java:307)
        at expo.modules.updates.-$$Lambda$UpdatesController$cVwvsx9XXcX6YuWbf7IvrVkJAiA.run(Unknown Source:6)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)

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?