Failed resolution of: Lcom/google/firebase/analytics/FirebaseAnalytics

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Failed resolution of: Lcom/google/firebase/analytics/FirebaseAnalytics

573件の閲覧回数
Billiton
Contributor I

Dear team,

We are developing an application with Taplinx. And we got this error:

FATAL EXCEPTION: main
                                                                                                Process: com.xxx.xxxxx, PID: 6289
                                                                                                    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/analytics/FirebaseAnalytics;
                                                                                                    	at com.nxp.nfclib.analytics.AnalyticsTracker.getReader(:61)
                                                                                                    	at com.nxp.nfclib.analytics.AnalyticsTracker.Base64(:122)
                                                                                                    	at com.nxp.nfclib.analytics.AnalyticsTracker.sendEvent(:107)
                                                                                                    	at com.nxp.nfclib.ʽ.CardType(:649)
                                                                                                    	at com.nxp.nfclib.ʽ.Base64(:60)
                                                                                                    	at com.nxp.nfclib.ʽ$ˊ.getReader(:785)
                                                                                                    	at com.nxp.nfclib.ʽ$ˊ.onPostExecute(:663)
                                                                                                    	at android.os.AsyncTask.finish(AsyncTask.java:771)
                                                                                                    	at android.os.AsyncTask.-$$Nest$mfinish(Unknown Source:0)
                                                                                                    	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257)
                                                                                                    	at android.os.Looper.loop(Looper.java:368)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8839)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
                                                                                                    Caused by: java.lang.ClassNotFoundException: com.google.firebase.analytics.FirebaseAnalytics
                                                                                                    	at com.nxp.nfclib.analytics.AnalyticsTracker.getReader(:61) 
                                                                                                    	at com.nxp.nfclib.analytics.AnalyticsTracker.Base64(:122) 
                                                                                                    	at com.nxp.nfclib.analytics.AnalyticsTracker.sendEvent(:107) 
                                                                                                    	at com.nxp.nfclib.ʽ.CardType(:649) 
                                                                                                    	at com.nxp.nfclib.ʽ.Base64(:60) 
                                                                                                    	at com.nxp.nfclib.ʽ$ˊ.getReader(:785) 
                                                                                                    	at com.nxp.nfclib.ʽ$ˊ.onPostExecute(:663) 
                                                                                                    	at android.os.AsyncTask.finish(AsyncTask.java:771) 
                                                                                                    	at android.os.AsyncTask.-$$Nest$mfinish(Unknown Source:0) 
                                                                                                    	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788) 
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106) 
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257) 
                                                                                                    	at android.os.Looper.loop(Looper.java:368) 
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8839) 
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572) 
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049) 

 This happens seconds after initialization and 

libInstance.isActivityRegistered() == true;

After a few seconds, and before any card intent, it crashes with the fatal error above.

Since the application will not be distributed online and the users' locations will be in Mainland China, we don't want to include Firebase in our application. Are there any methods to avoid this? Could you offer some suggestions on this error?

Thank you very much, and I look forward to your reply.

Warm regards,

Billiton

ラベル(2)
タグ(2)
0 件の賞賛
返信
3 返答(返信)

549件の閲覧回数
Fabian_R
NXP TechSupport
NXP TechSupport

Hello sir,

It is possible to avoid the use of Firebase but unfortunately, these implementations need to be done by your development team. I am very sorry but since TapLinx does depend on Firebase for some implementations, the removal of these dependencies will have to be done manually starting by a clean Android project and avid the imports of any google and firebase module.

I am very sorry but we don't have any guide for performing these changes.

Best Regards,
Fabian
0 件の賞賛
返信

571件の閲覧回数
Billiton
Contributor I
Quick updates, I found the requirements of including the library of Firebase in the quickstart. Then I still need some suggestions on: If I include the Firebase in my project without access to Firebase (due to the internet restrictions), will this matter?
0 件の賞賛
返信

344件の閲覧回数
Gralin
Contributor I

Yes, it will work wihtout Firebase, but you need to include the library

com.google.firebase:firebase-core

On runtime, you may see these errors in logcat, but those are harmless

Gralin_0-1752658621980.png

 

タグ(1)
0 件の賞賛
返信