当我将 firebase perf 依赖项添加到我的项目中时,我收到此错误Illegal class file: Class module-info is missing a super type. Class file version 53.
我的 Gradle 和 google 服务项目级依赖项是
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.google.gms:google-services:4.3.2'
Run Code Online (Sandbox Code Playgroud)
我遵循了他们的文档https://firebase.google.com/docs/perf-mon/get-started-android 中提到的确切步骤。
我尝试过清理和重建并清除 Android Studio 缓存。
并且还尝试了来自 StackOverflow 的类似问题解决方案
项目级构建gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.google.gms:google-services:4.3.2'
classpath 'com.google.firebase:perf-plugin:1.3.1' // Performance Monitoring plugin
}
}
allprojects …Run Code Online (Sandbox Code Playgroud) setLevel(okhttp3.logging.HttpLoggingInterceptor.Level)'已弃用
应该用setLevel替换什么?删除不推荐使用的问题
androidx.appcompat.appcompat.R does not exist
升级/重构到 AndroidX 后,我在代码中收到此错误,
它显示appcompat符号无法解析
如何解决这个错误!
“无法解决:com.google.firebase:firebase-messaging:16.0.5”
Firebase 依赖版本是16.0.5,我也切换并玩了一些其他版本,仍然有错误。
def Firebase_version = "16.0.5"
implementation "com.google.firebase:firebase-auth:$Firebase_version"
implementation "com.google.firebase:firebase-messaging:$Firebase_version"
Run Code Online (Sandbox Code Playgroud)
我正在使用最新版本的类路径
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.0.2'
Run Code Online (Sandbox Code Playgroud)
和存储库
google()
jcenter()
Run Code Online (Sandbox Code Playgroud)
两者都添加:
安卓工作室:3.2.1
android firebase build.gradle firebase-authentication firebase-cloud-messaging
我使用 HTTPS 克隆了我的公司项目 repo,我想迁移到 SSH,因为它与我的个人 git 帐户冲突。如何迁移到 SSH 而不是使用 HTTPS?
我们如何在 android 项目中为依赖项添加 R8 规则,并从缩小和混淆中排除文件和包?。
升级到 AndroidX 后,当我设置 LayoutManager 时,我收到此错误“必须是以下之一:RecyclerView.HORIZONTAL、RecyclerView.VERTICAL ”
tournamentRecyclerView.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));
问题 ID:错误常量。
检查信息:确保当方法中的参数仅允许一组特定的常量时,调用遵守这些规则
android ×6
androidx ×2
android-r8 ×1
build.gradle ×1
firebase ×1
git ×1
github ×1
gradle ×1
okhttp3 ×1
performance ×1
proguard ×1
retrofit2 ×1
ssh ×1