- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是我的build.gradle
:
请帮帮我。
apply plugin: "com.android.application"
import com.android.build.OutputFile
def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
defaultConfig {
applicationId "com.deshi_diet_assistant"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
implementation project(':react-native-date-picker')
implementation project(':react-native-push-notification')
implementation project(':react-native-google-signin')
implementation project(':react-native-gesture-handler')
implementation project(':react-native-vector-icons')
implementation project(':react-native-fbsdk')
implementation project(':react-native-firebase')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
// Firebase dependencies
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation "com.google.firebase:firebase-core:16.0.8"
//Firebase Database
implementation 'com.google.firebase:firebase-database:17.0.0'
//Firebase auth
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation "com.google.firebase:firebase-auth:{{ android.firebase.auth }}"
//Facebook login
implementation 'com.facebook.android:facebook-login:[5,6)'
//FBSDK
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
// //google sign in
// implementation (project(':react-native-google-signin')){
// exclude group: "com.google.android.gms"
// }
implementation 'com.google.android.gms:play-services-auth:11.6.0'
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
最佳答案
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "16.0.0" //Add this
firebaseVersion = "17.0.0" //Add this
}
关于javascript - D8 : Program type already present: android. support.v4.app.INotificationSideChannel$Stub$Proxy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56699189/
我正在开发一个新闻应用程序,但我从 gradle 控制台收到以下错误 (androidx.core:core:1.0.1) and classes.jar (com.android.support:s
在使用 androidx 和数据绑定(bind)添加回收 View 后,我正在使用 android jetback 它开始显示android.support.v4.app.INotificationS
com.hendraanggrian.appcompat:socialview:0.1 库与 androidx 一起工作。当我将这个库添加到我的项目时,我得到了 support.v4 错误: Prog
我有一个带有 flutter_local_notifications 依赖项的 flutter 项目。 当尝试添加任何 Firebase 依赖项 并针对 android 进行编译时,我得到了这个: D
我知道它可能看起来像 This Question但我无法用提出的解决方案修复它,我也无法对此发表评论。错误是: Program type already present: android.suppor
每当我尝试构建项目时添加implemntation 'com.google.android.material:material:1.0.0-alpha1'时,Android Studio都会说: Pr
在 android 更新 3.4 之前,我的应用程序运行完美,但在升级 android 之后,我的应用程序出现合并错误: "Duplicate class android.support.v4.app
每当我尝试构建项目时添加 implemntation 'com.google.android.material:material:1.0.0-alpha1' 时,Android Studio 都会说:
在我的项目中包含 Firebase 核心依赖项之后 implementation 'com.google.firebase:firebase-core:15.0.2' 我遇到了这个错误。 Progra
我试图将当前的 SDK 版本保留为 27,并且不想升级到 AndroidX。这个错误有什么解决办法吗? Error highlihted 最佳答案 此问题是由于部分 AndroidX 实现造成的。 查
这是我的build.gradle: 请帮帮我。 apply plugin: "com.android.application" import com.android.build.OutputFile
如何解决以下错误? 1 exception was raised by workers: java.lang.RuntimeException: Duplicate class android.
我是一名优秀的程序员,十分优秀!