Cannot replace a bundle of version code 2 with an APK - react-native

I'm trying to update my Expo android app, so while submitting the .aab/.apk file I faced this error :
[logs] [!] Google Api Error: Invalid request - Cannot replace a bundle
of version code 2 with an APK. [logs] Fastlane supply failed [logs]
Failed to submit the app
Any suggestion I'll be gratefull

Related

adb: failed to install google.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.google.android

i cant insatll main google app(package: com.google.android.googlequicksearchbox) from play store on my android vivo y15s android 12.
on android the error was something about package name conflicting.
then i tried to install the apk file from CMD of google of version 13.48.11.26.arm64 then it showed the error...
adb: failed to install google.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.google.android.googlequicksearchbox attempting to redeclare permiss ion com.google.android.apps.now.OPT_IN_WIZARD already owned by com.google.androi d.apps.searchlite]
then i uninstalled the com.google.android.apps.searchlite] but nothing changed...same error
then i tried to uninstall com.google.android.apps.now.OPT_IN_WIZARD then error occured
Failure [DELETE_FAILED_INTERNAL_ERROR]

Error Task :app:processDebugManifest FAILED

I got an error when I installed firebase storage in the react-native project
when I installed the firebase app & firebase storage in my project, in the console I got found 3 low vulnerabilities then after running npm audit fix I got error Task :app:processDebugManifest FAILED
after this, I'm also getting
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.

Ejecting to bare expo can't install on iOS simulator

I recently had to switch to the bare workflow from the managed workflow. After running expo eject I tested on android, which suffered from an issue with expo-constants not being available, after installing that it worked just fine. I moved on to installing it on the iOS simulator and got an error trying to install. Been trying to debug it but not having any luck. Logs are below:
success Successfully built the app
info Installing "/Users/***/Library/Developer/Xcode/DerivedData/***-dtoeptcccdubmbcvblrjlzhwexaq/Build/Products/Debug-iphonesimulator/***.app"
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/***/Library/Developer/CoreSimulator/Devices/8666E576-E2C9-4711-B8EB-2A7720C08B84/data/Bundle/Application/F519E6C9-3AFC-49F4-B0E5-9D40C41F54D6/***.app/*** : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/pedromcunha/Library/Developer/CoreSimulator/Devices/8666E576-E2C9-4711-B8EB-2A7720C08B84/data/Bundle/Application/F519E6C9-3AFC-49F4-B0E5-9D40C41F54D6/***.app/*** : No such file or directory
info Launching "com.***.***"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.***.***" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.***.***" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "com.***.***" is unknown to FrontBoard.
Application "com.***.***" is unknown to FrontBoard.
I redacted any sensitive info with ***. It says that the build was successful but after looking into the build itself I don't see any executable. Here's the folder contents of the .app package.
Any help is much appreciated.

Duplicate resources - Failed to generate Signed APK in react native

Getting this error Error: Duplicate resources while generating apk file in react-native project

Error running Expo app on iOS Simulator

When attempting to launch an Expo project from the XDE, I am presented with the following issue where the Expo simulator app will not install:
Error running xcrun simctl install booted
/Users/username/.expo/ios-simulator-app-cache/Exponent-X.Y.Z.app: An
error was encountered processing the command
(domain=NSPOSIXErrorDomain, code=22): Failed to install the requested
application The bundle identifier of the application could not be
determined.
Ensure that the application's Info.plist contains a value
for CFBundleIdentifier.
Error installing or running app. Error: Process exited with non-zero
code: 22
Which will display like the following image in the XDE:
This appears to be a corrupted or incompatible version of the simulator app that is stored on your computer. The Expo Development Environment (XDE) does not resolve this issue automatically.
As mentioned on the Expo and XDE forums, the way to resolve this issue is to navigate to:
~/.expo/ios-simulator-app-cache/
In the Finder, and delete the file Exponent-X.Y.Z where X, Y, and Z represent the version of the app.
Source: https://forums.expo.io/t/error-installing-expo-on-ios-simulator/741