Error when install ionic app on Android device - ionic-framework

I have create my ionic app and run on Android emulator (Android 7.x).it work correctly,but when I try to install on Android box (Android 6.0.1) i got error

Make sure your testing device is on the same version of your compiled apk sdk or it is in a version ahead of it.
For example, an app built for Android 7.1.0 will not run on Android 6.1.0 but an app built for Android 6.1.0 will run on both 6.1.0 and 7.1.0 and so on.
As a default approach the newer versions of ionic cli ships aways with the latest Android sdk version, which current is 7.1.0, if youl'd like to use an older one you need to remove the platform and add it again, you can do it within these commands:
Remove the platform
ionic cordova platform remove android
Then add it again with your desired android version
ionic cordova platform add android#6.1.0
For this example I'm using the 6.1.0 version but feel free to change it to another sdk version.

Related

How to upgrade flutter project dart sdk version

I have Flutter version 3.3.2 installed.
How do I upgrade flutter project dart sdk version?
Current project sdk version
sdk:">=2.7.0 3.0.0<"
You can run flutter upgrade and normally your project should pick up the most recent version of the SDK.
Refer to the documentation and to this previously asked question.

Flutter project ios can't install after upgrade to latest version

I can't install pod
the project was working with flutter version: 2.10.3 after i upgrade to latest
version Channel stable, 3.3.4, now i can't install project on both IOS and android i
am getting problem. the image attached for both IOS and android problem *
As mentioned in the changelog of the package stripe_ios, the minimum deployment target of ios you can set is 12.0.
So, open your runner.plist file with Xcode and change the minimum_deployment_target to 12.0 or not recommended, but, you can downgrade the stripe_ios package to version 2.4.0 or less.

I have updated flutter sdk version to 2.10.0 but in terminal error coming saying : current version is 2.8.0

i have updated the sdk version of flutter to 2.10.0 but still old version (2.8.0) is showing in terminal due to which i am unable to use google fonts in my app as the google fonts require sdk version >=2.10.0. I Have used these two commands to upgrade - flutter upgrade and flutter pub get
Check for version file in flutter SDK. Open the flutter SDK folder and open the version file. It use to have a version specified, also check for the flutter version in VS Code at the bottom bar. If both are 2.10.0, then just flutter clean the project and rebuild. IF 2.8.0 is still there, download 2.10.0 zip file and unzip and replace the flutter SDK path.
You would check your flutter's SDK version through the below command
flutter doctor -v
Once you type above command, the system will show you about the current config

dart sdk is not configured in macos

I already have dart sdk installed:
running dart --version gives me:
Dart SDK version: 2.17.6 (stable) (Tue Jul 12 12:54:37 2022 +0200) on "macos_arm64"
up until now I was using vscode but now I need to go back to android studio which gives me the following error on top of every dart file:
Dart sdk is not configured
N.B: This is not a fresh install. I have been using flutter and vscode in my mac for quite some time now
Try this in your Android Studio.
Preference
plugin
search for flutter from the market
install flutter and also make sure dart is install, you can confirm by searching for dart also.
restart you android studio after and you should be fine

Error after running flutter doctor : Unable to locate Android SDK

I got these errors after installing flutter then running flutter doctor to check if the installation succeeded, Although I've installed both Android Studio and Android SDK in Android Studio's installation progress steps with no issues at all, what do I have to do now?
If you're using android studio, try these steps :
Click Tools > SDK Manager.
In the SDK Platforms tab, select Android 10 (29).
In the SDK Tools tab, select Android SDK Build-Tools 29 (or higher).
Click OK to begin install.
In case if above steps don't solve your problem then try updating the SDK path
flutter config --android-sdk <path-to-your-android-sdk-path>
Note: path must be enclosed within double quotes
"C:\Users\username\AppData\Local\Android\Sdk"