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.
Related
I've run into a strange issue when trying to setup Firebase sign in with Apple functionality in my app.
It is required to import FirebaseAuth for OAuth functionality. When I try importing it I get the error : "No such Module 'FirebaseAuth'". I have added the package dependencies with package manager and FirebaseAuth is there... but it still gives the error. See screenshot below.
Simply importing Firebase does not give an import error, however I still get errors when trying to use the Authentication functionality. See screenshot below
I've looked for solutions elsewhere but others who have had the same issue as me used Cocoapods to install the packages so their solutions don't apply here.
I am using Xcode 13.0
I fixed the issue by adding FirebaseAuth dependency in build phases:
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.
following the official getting started tutorial I get the following error when I try to deploy the application in my phone using this command: ionic serve --devapp (it works on browser):
[ERROR] Could not find cordova integration in the default project.
I get this error both on Windows and MacOS.
I'm using Node 6.4.1 and Ionic CLI 4.10.3
Does the official tutorial missing something?
I had the same issue. In fact, with the default project, you have to copy the cordova assets to prepare the native build for mobile.
You can find more info here : Ionic documentation
Try this :
ionic cordova prepare
And then go again with :
ionic serve --devapp
The accepted answer is 100% correct .
But the reason why this occurred for me was that somehow the default was capacitor and not cordova.
so first i ran
ionic integrations disable capacitor
then ran
ionic cordova prepare
which solved my issue
I’ve created a new ionic app with ionic version 4.0.0-beta.7 and while adding the Crashlytics plugin, my app is not compiling successfully. Also i cannot see the documentation for crashlytics on https://beta.ionicframework.com/docs/native/. So do ionic 4 beta supports crashlytics or not?
I am getting the following exception in browser console.
Uncaught TypeError: Object(...) is not a function
at index.js:194
at Object../node_modules/#ionic-native/fabric/index.js (index.js:296)
My app is using ionic native 5.0.0.beta-15.
In ionic 4 is all like before (about plugins), just need to append "/ngx" to the path of the wrapper of the plugin. So if the path was "#ionic-native/crashlytics" now it "#ionic-native/crashlytics/ngx"
I am following the Ionic Tutorial from their docs and when I run:
ionic start MyIonic2Project tutorial --v2
I get no errors. But when I try to run it using
ionic serve
I get the following error:
I have done nothing with the code. Is there something wrong with installation of ionic?
Firstly you have to move into MyIonic2Project folder.Then run as shown below.
c:\MyIonic2Project> ionic serve