I have implemented Capacitor plugin for Firebase Crashlytics in my Ionic 5 app following this doc. I completed all the steps but getting the following error.
error: package com.getcapacitor.community.firebasecrashlytic does not exist
^
This error is coming when Android Studio is trying to build the project. The error is comming the the MainActivity.java class in line import com.getcapacitor.community.firebasecrashlytic.FirebaseCrashlytics;
In short
There is a typo in README. I managed to fix it by adding s in firebasecrashlytic.
Just change import com.getcapacitor.community.firebasecrashlytic.FirebaseCrashlytics; to import com.getcapacitor.community.firebasecrashlytics.FirebaseCrashlytics;
Some fun
There was an issue related to this "bug". The issue was closed without fixing the cause.
There are already a few pull requests (like this one) waiting for approval.
Related
My issue is that I used the LeakCanary library in android. com.squareup.leakcanary:leakcanary-android:2.9.1, here my code runs and works successfully in debug mode, but when I create a release, then get an error like this.
package leakcanary does not exist
import leakcanary.AppWatcher;
^
anyone have solution for this error
I am getting this error:
Failed building JavaScript bundle. Unable to resolve
“expo-app-loading” from “App.js”
when I ran my project after a couple of months. Earlier it was working fine but not now.
Can someone please help me out?
If you recently updated SDK versions (expo upgrade), please be sure to review the breaking changes carefully as is advised when you complete the install.
For instance, SDK-40 which was released in December has breaking changes notes about expo-app-loading that probably addresses what you're seeing perfectly.
Read this page : https://blog.expo.io/expo-sdk-40-is-now-available-d4d73e67da33
Look for section title: AppLoading has been extracted from the expo package
There were two problems:
expo-app-loading was not in my package.json, so I just installed it again and boom, it was in my packege.json then.
I was importing 'AppLoading' the wrong way. I wrote
import {AppLoading} from "expo-app-loading"; //wrong way
Which was breaking. Then I corrected it to
import AppLoading from "expo-app-loading"; //correct way
Which solved the issue.
I am currently trying to use flutter local notifications.
To do this, we need to use flutter_local_notifications package.
I am unable to add it as a receiver in my Manifest.xml file and the error that keeps popping up is : Unresolved package dexterous.
Also, when I check my flutter plugins,
How can I resolve this?
I have tested my app on many devices and everything goes well but when I'm trying to generate a signed apk this message appears: Expected resource of type interpolator [ResourceType]
This line seems the problem:
scaleDown.setInterpolator(AnimationUtils.loadInterpolator(activity, android.R.anim.decelerate_interpolator));
Behind this line there is a class called AnimationUtils, this class belongs to android SDK so I don't understand why when I inspect its the source code the following imports show me Cannot resolve symbol
import android.annotation.AnimRes;
import android.annotation.InterpolatorRes;
I already tried clean and rebuild.
I finally overcome this issue replacing
AnimationUtils.loadInterpolator(activity, android.R.anim.decelerate_interpolator)
To this
new DecelerateInterpolator()
1.try to change android.R.anim.a to R.interpolater.b
I just tried to Import the GreenDroid-Librarys for my new Android Application.
Now, I encounter a confusing Error. I first Import the GreenDroid-Core Library and everything is fine.
But when I, after that, try to Import the GreenDroid-GoogleAPI Library into my workspace I get a java.lang.StackOverflowError.
The detailed Error is as followed:
Failed to call IProjectListener.projectOpened
java.lang.StackOverflowError
I´m not sure if this is a problem with my Eclipse or with the Library per se.