How to install API 24? - ionic-framework

I'm trying to install the cordova plugin for barcode scanning, but it gives me the following error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24].
Then I tried to install API 24 using Android SDK manager but it gives me the following message:
Package 'ARM 64 v8a System Image, Android API 24, revision 7' depends on 'Missing SDK Platform Android, API 24'
I tried going to Packages -> Reload but it still gives me the same message. What could be the problem?

Seems to be you are trying to install system image for Android API 24. But you need SDK Platform Android, API 24. Try to install that one.

Related

Codemagic builed failed on flutter app on windows with platform error?

I'm trying to build my flutter app with codemagic for ios but it fails building with this error:
[!] Automatically assigning platform iOS with version 9.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
Error running pod install
Build failed :| Failed to build for iOS
exactly like on this thread:
Error while building flutter app for ios on codemagic - Automatically assigning platform `iOS` with version `8.0` on target `Runner`
but couldn't understand the solution.
I'm using windows so have no pod file as well.
I also looked inside the suggested link but it links to the cocoapod website which I don't have on windows.
Any suggestions would help!

MongoDB Realm React Native SDK with Expo - Missing Realm Constructor error

According to the latest documentation for MongoDB Realm React Native, it states that their SDK is compatible with Expo...
Expo now supports Realm with the Expo SDK version 44. To use Realm
with Expo, upgrade to Expo SDK version 44. Realm does not work with
earlier versions of Expo.
We have installed Expo and have the latest version of their SDK, however no matter what we try we get an error stating "Missing Ream Constructor":
We require the project to be in the Expo managed workflow and not the bare workflow. When we setup in bare workflow, it works.
Are we missing something??
Some of the settings I made to fix:
REMEMBER: react-native-reanimated doesn't work with Realm & Expo
Following the documentation
Rather than run with expo start or npx react-native [platform] run yarn android for iOS or yarn ios
Install Java SDK version 8
Uninstall react-native: npm uninstall -g react-native and run npx react-native run-android
If you got this error:
A problem occurred configuring project ':realm'.
Could not create task ':realm:compileDebugJavaWithJavac'.
Could not create task ':realm:forwardDebugPort'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'C:\Users\yourUser\Desktop\Projects\MyAwesomeRealmApp\android\local.properties'.
`
To fix this:
Create a file with the name local.properties in android directory
Open the file and paste your Android SDK path like below: sdk.dir=C:\\Users\\UserName\\AppData\\Local\\Android\\sdk

Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin#1544e09d' is not a valid version number. Ionic 6

when trying to build the project for android (ionic cordova build android --prod --release), I get the following error:
Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin#fbc39d3' is not a valid version number
OneSignal Warning: Could not get AGP plugin version
** I use cordova, I am stuck on that error as no material or explanations are coming to solve it
Ionic CLI : 6.13.1
Cordova CLI : 10.0.0
Cordova Platforms : android 9.1.0
Both lines are from OneSignal-Gradle-Plugin and indicate it could not find the version of the AGP (Android Gradle Plugin) in your project.
Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin#fbc39d3' is not a valid version number
OneSignal Warning: Could not get AGP plugin version
This Error and Warning messages will not cause a build failure. The AGP version detection is only used enable AGP 2.x.x fall back logic, if the version isn't found it assumes you are using AGP 3+. AGP 3 was first added in Cordova Android 7.0.0 so as long as you are using this version or newer this won't cause any side effects either.
Until OneSignal-Gradle-Plugin improves this version detection you can safely ignore these two messages from it.

Error android:layout_marginEnd with appcompat v7 library

I got this error:
removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <ImageView>
from the abc_activity_chooser_view.xml XML file when compiling the appcompat v7 library in my Android project.
Things I have tried:
Uninstall Eclipse Luna and Android SDK completely.
Re-install Eclipse Luna and Android SDK.
Install the require Android components via Android SDK Manager.
In Eclipse, ask Android Lint to ignore the error in Preferences and Skip Library Project Dependencies.
Clean and build all projects.
Add -clean directive to eclipse.ini file.
But without any success.
Tools I used are:
OS: Window 7 64-bit
IDE: Eclipse Luna Service Release 2 (v4.4.2) Build 20150219-0600
64-bit
Android SDK: Android v5.1.1 (API Level 22)
ADT: v23.0.6.1720515
Android SDK Tools: v24.1.2
Android SDK Platform Tools: v22
Android SDK Build Tools: v22.0.1
Android Support Repository: v12
Android Support Library: v22
Does anyone have any suggestion on how to fix, or workaround this error till Google fix this error?
I can't deploy my Android package until this error is fixed.
Thanks for any help.
To fix the android:layout_marginEnd error, within Eclipse, open the project.properties file within the appcompat v7 library and add the following directives:
target=android-21
sdk.buildtools=21.1.2
Note: You may need to install the Android SDK Build Tools v21.1.2 [if you haven't already] via the Android SDK Manager.
For those wishing to support Android 5.1+ (API 22) in your Android apps, you can add the following directives to the project.properties file of each of your Android project:
target=android-22
sdk.buildtools=22.0.1
Note: You may need to install the Android SDK Build Tools v22.0.1 [if you haven't already] via the Android SDK Manager.
So, in essence, you're using one version of the Android SDK Build Tools to build your Android apps, and another to fix the android:layout_marginEnd error in the appcompat v7 library.
The documentation for the sdk.buildtools directive is here. The documentation also include info on how to setup the buildToolsVersion directive in the build.gradle file for those using Android Studio and Gradle.

cordova build error: SDK "iphoneos6.0" cannot be located

i developing a html5-App for Android and iOS. Building for Android and iOS-Simulator works like a charm. But if i want to build the app for iOS-Device the build process stops with following error:
update-ios:
cordova prepare ios
build-ios-xcodebuild:
xcodebuild: error: SDK "iphoneos6.0" cannot be located.
/Users/.../nbproject/build.xml:178: exec returned: 64
For development i using netbeansIDE, xcode 5.1.1 and cordova 3.5.
Also i downloaded the iOS 6.1 sdk and copied into sdk folder of xcode, but that don't work for me. May i have to set an environment variable?
Is there someone, who could give me a hint?
In advance