You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up expo project with app.json which has no runtimePolicy field and android/ directory in .gitignore.
Run setup-ci --preset --eas.
Run npx expo prebuild.
Run git reset --hard HEAD; git clean -df.
Run setup-ci --preset --eas again.
error occurs
Root cause
EAS Preview recipe patches app.json by adding
runtimeVersion: {
policy: "fingerprint"
}
After that, npx expo prebuild (step 3) produces android/app/src/main/AndroidManifest.xml file with the following line: <meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="@string/expo_runtime_version"/>.
This line is added to AndroidManifest.xml by expo prebuild only if runtimeVersion is defined in app.json.
Then, if we reset app.json to original state (step 4.), and runtimeVersion field is removed), the android directory is not removed since it is listed in .gitignore and running npx expo prebuild again (as a subprocess of step 5) results in the error.
Sometimes when running
expo prebuild
in project withandroid
directory, we get the following error:So far it has only been observed in CNG projects with
android
directory left as junk after build.Quick remedy could be to
expo prebuild
with flag--clean
if it is CNGIt would be nice to understand exactly what the issue is though
The text was updated successfully, but these errors were encountered: