2 September 2026
Ссылка
click to show
click to show
Like this fork
https://github.com/MrZhongzq/NPatch
MicroG Integration - Built-in GMS redirect for Google apps (YouTube, YouTube Music, etc.)
空一格 K/gpt
🔧 问题分析:
您的项目在创建 top.nkbe.npatch.LSPApplication 时出现了 IllegalStateException,提示未初始化默认的 FirebaseApp。
💡 解决方案:
确保在应用的 Application 类的 onCreate() 方法中调用:
FirebaseApp.initializeApp(this);
或者在 AndroidManifest.xml 文件中正确配置 Firebase 相关的 google-services.json 文件,并确保已添加必要的依赖。
🔍 步骤建议:
1. 检查是否在 Application 类的 onCreate() 方法中调用 FirebaseApp.initializeApp(this)。
2. 确认 google-services.json 文件已放在 app/ 目录下。
3. 确认 build.gradle 文件中已添加 Firebase 依赖:
implementation 'com.google.firebase:firebase-analytics:20.0.0'
4. 重新编译并运行项目。
如果问题仍未解决,可以查看更多详细日志,逐步排查初始化流程是否正确。
子车仲行为什么最新的NP闪退)
I added a dependency to collect crash statistics for the npatch manager itself, but it seems I didn't add it correctly)