Unsupported SDK version: our app builders do not support SDK version 45, yet. The latest SDK version is 45.0.0 - react-native

Unsupported SDK version
Error: Unsupported SDK version
at Object.checkIfSdkIsSupported (/usr/local/lib/node_modules/expo-cli/src/commands/build/utils.ts:80:11)
at AndroidBuilder.checkProjectConfig (/usr/local/lib/node_modules/expo-cli/src/commands/build/AndroidBuilder.ts:50:5)
at AndroidBuilder.prepareProjectInfo (/usr/local/lib/node_modules/expo-cli/src/commands/build/BaseBuilder.ts:72:5)
at AndroidBuilder.command (/usr/local/lib/node_modules/expo-cli/src/commands/build/BaseBuilder.ts:41:7)

You need to build using eas-cli
npm install -g eas-cli
eas build -p android

expo 5.4.6
eas-cli/0.52.0 win32-x64 node-v16.13.0
sdk 45
I managed to create an apk (not aab) for my project using this command:
eas build --profile preview
This method is described here:
https://docs.expo.dev/build/eas-json/

Related

Some dependencies are incompatible with the installed expo package version

Hello I am learning expo for react Native and while running my app i get the error below. My app runs fine but i just want to get rid of the error.
is there something like npm update i can do to get rid of this error
here is the error:
Some dependencies are incompatible with the installed expo package version:
#react-native-picker/picker - expected version: 2.4.0 - actual version installed: 2.4.2
react-native-safe-area-context - expected version: 4.2.4 - actual version installed: 4.3.1
react-native-screens - expected version: ~3.11.1 - actual version installed: 3.13.1
Your project may not work correctly until you install the correct versions of the packages.
To install the correct versions of these packages, please run: expo doctor --fix-dependencies,
or install individual packages by running expo install [package-name ...]
actually this does the trick
expo doctor --fix-dependencies
It appears to be that the expected version of some of your installed libraries are lower than the actual versions that you installed. You need to downgrade your dependencies to match the expected version to get rid of the warnings.
First you will need to uninstall the above packages by the command: npm uninstall [library-name]. For example: npm uninstall react-native-screens
After that, you will need to reinstall the above libraries using their recommended version: mpn install react-native-screens#3.11.1
You can also refer to this for more information: How do I down grade my react navigation in a current react-native project?

What is the difference between Expo CLI and Expo SDK

I am working on expo project by following online tutorials. I used npm install -g expo-cli to install the CLI. I also used expo init AwesomeProject to initialize a new expo project. Later i came to know that there is something called expo SDK and the latest version as of today is 42. So, i decided to check mine using expo --version. I got 4.3.2 as result and i can upgrade it to 4.9.1 by running npm install -g expo-cli. I realized that it is nothing do to with SDK version. Now i am confused with expo CLI and SDK because the tutorial doesn't even tell anything about SDK. Is it important to know about expo SDK ? and what's the difference between expo CLI and expo SDK and how to check its version? Thanks.
As far as I know, each version of Expo CLI is dependent on an SDK version and many other dependencies, and you should not update any dependency separately. You should wait for a new version of Expo CLI and when updating, probably, it will also update the version of the SDK. Expo CLI is just a command line that put together all expo dependencies and facilitates his installation in new projects. Expo SDK is the actual software that you use when you start expo and that gives your app access to multiple APIs.
Expo CLI is the set of commands that you use to interact with the Expo ecosystem to build, run and deploy your app. For ex: expo init, expo install, expo start, expo eject etc., commands are all part of the CLI.
Expo SDK is the set of packages that you 'import' for building your app. For eg: expo-location, expo-calendar are all packages that are part of SDK: Check out: https://docs.expo.dev/versions/v43.0.0/sdk/. The set of packages and their functionality vary for each SDK version.
When you run a command like
expo install expo-location
, you are using the expo's install command to install expo-location package for the SDK you are currently on.

An error occurred while running ionic cordova build android

when build android app using ionic ionic cordova build android comment getting an error
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=...\AppData\Local\Android\Sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information
ionic cordova build android
ionic cordova build android
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=...\AppData\Local\Android\Sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
As of Cordova-Android 6.4.0, Gradle is now required to be installed to build Android.
When installing on Windows, you need to add Gradle to your path, (see
Setting Environment Variables)

react-native-camera: sdk manager plateforms-tools 28.0.1 can't be installed

I'm trying to install react-native-camera. I'm on Ubuntu 18, Webstorm for IDE. Targeting Android.
For the Android SDK, I don't have a full Android Studio install. I've instead install only android-sdk and I'm using the sdkmanager. That works fine with my stub app, it compile and runs on Android with
react-native run-android
I've installed react-native-camera as a module with npm as per the indications:
npm install react-native-camera --save
react-native link react-native-camera
So far so good. It links. If I try to launch the app however (even before trying to actually use the camera), I get some warnings:
> Configure project :react-native-camera
Checking the license for package Android SDK Platform-Tools in /usr/lib/android-sdk/licenses
License for package Android SDK Platform-Tools accepted.
Preparing "Install Android SDK Platform-Tools (revision: 28.0.1)".
Warning: Failed to read or create install properties file.
WARNING: platform-tools package is not installed, and automatic installation failed.
So I've tried to install the platforms tools using the sdk manager & instructions provided here:
sdkmanager "platform-tools" "platforms;android-28"
Which yields:
Warning: Failed to read or create install properties file.
So I am guessing it really has to do with the sdkmanager...
Do I absolutely need 28.0.1 for react-native-camera? If so, how can I get around this issue with the SDK manager? I've tried various similar syntax for the install of the platform and it didn't work. I checked with sdkmanager --list that it's the proper name (seems to be). And if I go under android-sdk/platforms-tools all I see there is the adb file (or perhaps the install is supposed to just update that file?)
Silly me.
I needed to run the SDK manager as sudo. To do that:
sudo bash sdkmanager [installations args as per post above].
I will leave the post - I lost a ridiculous amount of time for that, hopefully it can help others....
And yes - if the platform-tools install has worked then under /platform-tools you should see a bunch of files, not just the adb one.

how to update my Ionic App Lib Version?

In My Project, ionic info command here
Cordova CLI: 5.3.3
Ionic Version: 1.2.4-nightly-1917
Ionic CLI Version: 1.7.0
Ionic App Lib Version: 0.5.1-beta.0
ios-deploy version: 1.8.2
ios-sim version: 5.0.1
OS: Mac OS X El Capitan
Node Version: v4.2.2
Xcode version: Xcode 7.2 Build version 7C68
I want to update my Ionic App Lib Version. from 0.5.1-beta.0 to 0.6.4
How Can I Do? ionic lib update and ionic lib update -d command not working!
use this command :
npm install ionic-app-lib --save
Use this command:
ionic lib update
This should automatically detect the latest stable setup for the overall environment and update to it.
Off course it asks and confirms eg like this :
Are you sure you want to replace \stMobile\www\lib\ionic with an updated version of Ionic?
hope this helps :-)
Try doing this:
bower update
This will update everything if you use bower