Top

Documentation

Taxido is a unique and innovative app and website that brings a range of professional taxi services to your doorstep. Whether you need a quick ride, a rental, or intercity travel, Taxido offers reliable, convenient, and efficient solutions. Taxido - your all-in-one taxi service!

mobile

Common Errors


NOTE :
Before launching the app, ensure you have correctly set up the ADMIN LARAVEL and have added all necessary data through the admin panel.


  1. Could not connect to development server
  2. Error Message :

    Could not connect to development server

    Possible Solutions :

    1. Ensure Metro bundler is running :
    2.  
    3. npx react-native start
    4. Restart the app :
    5.  
    6. npx react-native run-android
    7. If using a real device, ensure both your PC and device are on the same network.
    8. Try running :
    9.  
    10. adb reverse tcp:8081 tcp:8081
  3. react-native-reanimated : Reanimated 2 failed to create a worklet
  4. Error Message :

    Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?

    Possible Solutions :

    1. Ensure Reanimated is installed correctly :
    2.  
    3. npm install react-native-reanimated
    4. Add the Reanimated plugin in babel.config.js:
    5.  
    6. module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: ['react-native-reanimated/plugin'], };
    7. Restart Metro with :
    8.  
    9. npx react-native start --reset-cache
    10. For more detailed information on Reanimated setup, refer to the official documentation:
    11. Click to open link
  5. react-native-maps: Map is blank on Android
  6. Possible Solutions:

    1. Add the Google Maps API key in AndroidManifest.xml:
    2. <meta-data
      android:name="com.google.android.geo.API_KEY"
      android:value="YOUR_API_KEY"/>
    3. Ensure dependencies are installed:
    4.  
    5. npm install react-native-maps
    6. For more detailed information on Reanimated setup, refer to the official documentation:
    7. Click to open link
  7. react-navigation: The action 'NAVIGATE' was not handled
  8. Error Message :

    Found screens inside a NavigationContainer but GestureHandlerRootView is not used

    Possible Solutions :

    1. Ensure the navigator is correctly defined in App.js :
    2. For Example :
    3. import { NavigationContainer } from '@react-navigation/native';
      export default function App() {
          return (
              <NavigationContainer>
              <Stack.Navigator>
                  Stack.Screen name="Home" component={HomeScreen} />
              </Stack.Navigator>
              </NavigationContainer>
          );
      }

    4. If using nested navigators, ensure that the screen is inside the correct navigator.
    5. For more detailed information on Reanimated setup, refer to the official documentation:
    6. Click to open link
  9. react-native-image-picker: Image picker doesn't work
  10. Possible Solutions :

    1. Add the Google Maps API key in AndroidManifest.xml :
    2. <uses-permission android:name="android.permission.CAMERA"/>
      <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    3. Rebuild the app :
    4. npx react-native run-android
    5. For more detailed information on setting up react-native-image-picker, refer to the official documentation:
    6. Click to open link
  11. react-native-gesture-handler: GestureHandlerRootView is not used
  12. Error Message :

    Found screens inside a NavigationContainer but GestureHandlerRootView is not used

    Possible Solutions :

    1. Wrap your app in GestureHandlerRootView :
    2. For Example :
    3. import { GestureHandlerRootView } from 'react-native-gesture-handler';
      export default function App() {
          return (
              <GestureHandlerRootView style={{ flex: 1 }}>
              <NavigationContainer>
                  {/* Your screens */}
              </NavigationContainer>
              </GestureHandlerRootView>
          );
      }

    4. For more detailed information on `react-native-gesture-handler` setup, refer to the official documentation:
    5. Click to open link
  13. Android Gradle Plugin requires Java 17 to run
  14. Error Message :

    Android Gradle plugin requires Java 17 to run. You are currently using Java <version>

    Possible Solutions :

    1. Check the Java version :
    2.  
    3. java -version
    4. If it's not Java 17, update it :
    5.  
    6. brew install openjdk@17
    7. Set the Java environment :
    8.  
    9. export JAVA_HOME=$(/usr/libexec/java_home -v 17)
  15. Peer Dependency Conflict Error
  16. Possible Solutions :

    1. Error : npm WARN [package] has unmet peer dependency [dependency]
    2. Fix : Manually install the required peer dependency
    3.  
    4. npm install [dependency]@[version]
    5. Error : npm ERR! Could not resolve dependency
    6. Fix : Use --legacy-peer-deps to bypass conflicts.
    7.  
    8. npm install --legacy-peer-deps
    9. Error : React Native is outdated, incompatible with current dependencies
    10. Fix : Upgrade React Native with:
    11.  
    12. npx react-native upgrade
    13. Error : npm ERR! Missing or invalid node_modules
    14. Fix : Delete node_modules and package-lock.json, then reinstall.
    15.  
    16. rm -rf node_modules package-lock.json
    17.  
    18. npm install
    19. Error : npm ERR! Failed to build or install native modules
    20. Fix : Ensure Android Studio is installed and properly configured. Rebuild the app:
    21.  
    22. npx react-native run-android
    23. Find deprecated package:
    24.  
    25. npm WARN deprecated react-native-image-picker@0.0.0: This package is deprecated.
    26. Replace deprecated packages or update to newer versions.
    27.  
    28. npm install react-native-image-crop-picker
    29. Reinstall dependencies:
    30.  
    31. rm -rf node_modules package-lock.json
    32.  
    33. npm install
    34. Error : npm ERR! React Native version mismatch
    35. Fix : React Native versions in package.json, then run:
    36.  
    37. npm ERR! React Native version mismatch: React Native requires [version] but you're using [installed version].
    38. Error : npm ERR! React Native CLI is outdated
    39. Fix : Use npx instead of the global CLI:
    40.  
    41. npx react-native run-android

  1. Task :app:bundleReleaseJsAndAssets FAILED
  2. Error Message :

    Task :app:bundleReleaseJsAndAssets FAILED

    Possible Solutions :

    1. Run the following command before building :
    2.  
    3. npx react-native start --reset-cache
    4. Try cleaning and rebuilding:
    5.  
    6. cd android && ./gradlew clean
    7.  
    8. cd..
    9.  
    10. npx react-native run-android --variant=release
  3. Keystore file not found for signing config release
  4. Error Message :

    Keystore file '/android/app/release.keystore' not found for signing config 'release'

    Possible Solutions :

    1. Ensure your keystore file is placed in android/app/.
    2. Check your android/app/build.gradle for :
    3.  
    4. signingConfigs { release { storeFile file('release.keystore') storePassword 'your-password' keyAlias 'your-key-alias' keyPassword 'your-key-password' } }
    5. If missing, create a new keystore :
    6.  
    7. keytool -genkey -v -keystore release.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
  5. SDK location not found
  6. Error Message :

     
  7. SDK location not found. Define location with sdk.dir in the local.properties file.
  8. Possible Solutions :

    1. Open android/local.properties and set the correct SDK path :
    2.  
    3. sdk.dir=/Users/your-username/Library/Android/sdk (Mac)
    4.  
    5. sdk.dir=C:\\Users\\your-username\\AppData\\Local\\Android\\Sdk (Windows)
    6. If missing, create the file and add the path manually.
  9. app-release.apk not found after build
  10. Possible Solutions :

    1. Ensure you have built the APK correctly :
    2.  
    3. cd android && ./gradlew assembleRelease
    4. The APK will be located at :
    5.  
    6. android/app/build/outputs/apk/release/app-release.apk
  11. Unable to resolve dependency for ':app@release/compileClasspath'
  12. Possible Solutions :

    1. Run :
    2.  
    3. cd android && ./gradlew clean
    4.  
    5. ./gradlew --refresh-dependencies
    6. Check if any library is missing in package.json and reinstall :
    7.  
    8. npm install
  13. React Native Hermes: Release build fails
  14. Error Message :

    error: no suitable constructor found

    Possible Solutions :

    1. If using Hermes, ensure it's enabled :
    2. enableHermes: true
    3. Try :
    4. cd android && ./gradlew clean
  15. Execution failed for task ':app:mergeDexRelease'
  16. Error Message :

    Execution failed for task ':app:mergeDexRelease'.

    Possible Solutions :

     
  17. defaultConfig { multiDexEnabled true }
  18. Install Multidex :
  19. npm install @react-native-community/multidex
  20. Rebuild the app :
  21. cd android && ./gradlew clean
    npx react-native run-android --variant=release
  22. Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'
  23. Possible Solutions :

    1. Ensure JDK 17 is installed :
    2. java -version
    3. If not Java 17, update it :
    4. export JAVA_HOME=$(/usr/libexec/java_home -v 17)
    5. Rebuild the app.
  24. minCompileSdk (31) is greater than compileSdkVersion (30)
  25. Error Message :

    Android dependency 'androidx.core:core' has different version for the compile

    Possible Solutions :

    1. Update your android/build.gradle :
    2. compileSdkVersion = 33
      targetSdkVersion = 33
    3. Rebuild the project :
    4. cd android && ./gradlew clean
      npx react-native run-android --variant=release

    General Fix for APK Issues

    cd android
    ./gradlew clean
    ./gradlew assembleRelease

  1. Command PhaseScriptExecution failed with a nonzero exit code
  2. Possible Solutions :

    1. Run the following command to clean the build :
    2. cd ios
      xcodebuild clean
    3. If you're using CocoaPods, try :
    4. cd ios
      pod install --repo-update
    5. Restart Xcode and rebuild the app.
  3. Command CompileSwift failed
  4. Possible Solutions :

    1. Upgrade your Swift version :
    2. sudo xcode-select --switch /Applications/Xcode.app
    3. Ensure Build System is set to "New Build System" in Xcode.
  5. The linked framework 'React-Core' is missing
  6. Possible Solutions :

    1. Run :
    2. cd ios
      pod install
  7. CocoaPods version mismatch
  8. Possible Solutions :

    1. Update CocoaPods :
    2. sudo gem install cocoapods
      pod install --repo-update
    3. The APK will be located at :
    4.  
    5. android/app/build/outputs/apk/release/app-release.apk
  9. Unable to upload IPA to TestFlight/App Store
  10. Possible Solutions :

    1. Upload using Transporter (Mac App Store) or run :
    2. xcrun altool --upload-app -f app.ipa -t ios --apiKey YOUR_KEY --apiIssuer YOUR_ISSUER_ID
  11. Unable to upload IPA to TestFlight/App Store
  12. Possible Solutions :

    1. Ensure you have excluded arm64 for simulators in Xcode → Build Settings :
      1. Excluded Architectures → arm64 (for Debug builds).
      2. Remove arm64 exclusion for Release builds.

    General Fix for iOS Build Issues

    cd android
    pod install --repo-update
    pod install --repo-update
    cd ..
    npx react-native run-ios