我正在尝试在 Android Studio 4.2.1 (macOs Mojave) 中将我的应用程序组装为 assembleRelease 但我收到此错误
[无法解析配置“:app:releaseCompileClasspath”的所有工件。
找不到 com.github.theGlenn:flipper-android-no-op:0.6.0]
这是我的依赖项-
//Flipper
def flipperVersion = '0.94.1'
debugImplementation "com.facebook.flipper:flipper:$flipperVersion"
releaseImplementation "com.facebook.flipper:flipper-noop:$flipperVersion"
debugImplementation "com.facebook.flipper:flipper-network-plugin:$flipperVersion"
debugImplementation "com.facebook.soloader:soloader:0.10.1"
// add this to no-op Flipper + SoLoader
releaseImplementation 'com.github.theGlenn:flipper-android-no-op:0.6.0'
和
buildscript {
ext.kotlin_version = "1.5.10"
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
classpath 'com.android.tools.build:gradle:4.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
} allprojects {
repositories {
google()
mavenCentral()
}
}
也添加在清单中
<activity android:name="com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity"
android:exported="true"/>
而 app:assembleDebug 一切都很好
找不到有关此问题的任何信息
谢谢