Error: package com.huawei.hms.maps.util does not exist when using HMS Map SDK 5.1 - huawei-mobile-services

My Android app worked well with Huawei Map SDK 5.0.0 or lower version. When upgrading to Map SDK 5.0.1 or above version however, I get the error: package com.huawei.hms.maps.util does not exist when using:
import com.huawei.hms.maps.util.LogM;
import com.huawei.hms.maps.util.AssetBitmapDescriptor;
I tried several solutions, but none of them worked. Can someone help?

To resolve the issues on your Android app when using Huawei Map SDK 5.0.1 or above, you need to do the followings:
use Android API android.util.Log to replace com.huawei.hms.maps.util.LogM
for com.huawei.hms.maps.util.AssetBitmapDescriptor, use the corresponding method in BitmapDescriptorFactory to replace it. Please refer to the links for details:
Link 1 and link2.

Related

Undefined symbol: _OBJC_CLASS_$_FlurryMessaging

I recently upgrade Xcode to 14.X, and I'm getting the following error when building
Undefined symbol: _OBJC_CLASS_$_FlurryMessaging
Seems like Flurry package doesn't support Xcode. What should I do?
I am an engineer on Flurry's SDK team. Based on your description you are using Swift Package Manager?
Make sure you have imported Flurry analytics and messaging:
Add a import statement for messaging:
import Flurry_iOS_SDK
import Flurry_Messaging
Note Flurry Messaging is only supported on iOS and tvOS
For Cocoapods you need have the following in your Podfile:
pod 'Flurry-iOS-SDK/FlurryMessaging'
You should see the frameworks here:
Otherwise the instructions are the same as the above.
I have sample code for Flurry Messaging implementation here:
https://github.com/flurrydev/iOS-Push-notification-sample-swift
If this doesn't clear up the issue for you reach out to me at support#flurry.com

Ionic 5 capacitor adMob issue

I am trying to integrate adMob using capacitor to my ionic app. I followed these steps https://ionicframework.com/docs/native/admob-free
When I run the solution on Android Studio I am getting this error.
C:\Projects\my-app\android\capacitor-cordova-android-plugins\src\main\java\name\ratson\cordova\admob\AdMob.java:5: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
Am I missing something?
Hello I also tried admob free and encountered a few errors. I tried this later <https://github.com/capacitor-community/admob> If you can't find a solution, you can try this.

How to use cloud_firestore in flutter for web and android?

I have a Flutter app which works on Android as expected but if I want to compile it for Web I get an error.
It has to do something with the dependency cloud_firestore. If I use the dependency firebase it works fine on the web but on android now not..
This is the error message I get using cloud_firestore (compiling for web):
Skipping compiling pay_balance|lib/main_web_entrypoint.dart with ddc because some of its
transitive libraries have sdk dependencies that not supported on this platform:
firebase_core|lib/firebase_core.dart
https://github.com/dart-lang/build/blob/master/docs/faq.md#how-can-i-resolve-skipped-compiling-warnings
Can anybody help me? Maybe with another dependency for firestore (I did not find others which are working on web and android)..
Edit: I have used the firebase-dart plugin for web!! -> Only works on the web but not in android for me -> I need something for both at the same time!!
Or is there a Way I can use both packages without getting a compling error for the web when I import cloud_firestore?
If you want to use Firebase on Web and Mobile you have to get creative. I created the fb_auth plugin that uses the Mobile SDK firebase_auth on iOS and Android and the firebase package on web. This will give you a single plugin for auth.
https://pub.dev/packages/fb_auth
Im working on firstore and storage but they are not ready yet.
I have also created an article on how to do this with flutter:
https://medium.com/#rody.davis.jr/how-to-build-a-native-cross-platform-project-with-flutter-372b9e4b504f
You have to use dynamic imports so that at compile time it tree shakes what it doesn't need and will not throw an error.
Currently this is the only way to officially use both plugins in the same project.
EDIT: cloud_firestore now added
Two of the FutterFire plugins are now supported for web. FlutterFire plugins supporting web firebase_auth and firebase_core
cloud_firestore is now also supported

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

Error using barcode scanner in iOS PhoneGap

I am working on barcode scanning App. I have download the sample code from GitHub. When I run that project I get an error. Please help me to solve it.
ERROR: Plugin 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-11-28 14:12:36.198 BarCodeScannerCDV[942:40b] FAILED pluginJSON = {"className":"NetworkStatus","methodName":"getConnectionInfo","arguments":["NetworkStatus0"]}
Thanks.
I suggest you to used updated phonegap framework (Cordova 2.2.0), because this was a bug in Cordova 1.6.0.
Please see following comment by Shazron Abdullah in Google Phonegap group:
There is a new Cordova.plist because of the unified JS changes. Check
out the "Cordova Upgrade Guide" in your .dmg (Guides subfolder), or:
"Upgrading Cordova 1.5.0 projects to 1.6.0" step 8 of
https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Plugin%20Upgrade%20Guide.md#upgrading-older-cordova-plugins-to-16x
The BarcodeScanner plugin for iOS-Phonegap is stable one, please update your phonegap framework to 2.2.0.
In Phonegap 1.6.0 and below, network connection class name is Network Status but for Phonegap 1.6.1 and above, network connection class name is CDVConnection.