когда я строю, я получаю некоторые ошибки.вчера все работало нормально.я ничего не изменил в проекте.
Граница приложения:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
//configurations{
// all*.exclude module: 'okhttp'
// all*.exclude module: 'okio'
//}
allprojects {
repositories {
mavenLocal() // <--- add this line
jcenter()
maven { url "https://jitpack.io" } // <--- add this line
maven {
url 'https://dl.bintray.com/peekabooconnect/com.peekaboo.connect'
}
flatDir { dirs 'libs/' }
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Граница проекта:
buildscript {
repositories {
flatDir { dirs 'D:\\ubl files\\dexguard\\Dex guard\\DexGuard-8.0.14\\lib' }
jcenter()
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath ':dexguard:'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
}
apply plugin: 'com.android.application'
apply plugin: 'dexguard'
android {
signingConfigs {
useLibrary 'org.apache.http.legacy'
}
dataBinding {
enabled = true
}
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "app.com.brd"
minSdkVersion 19
targetSdkVersion 26
versionCode 54
versionName "1.4.0"
multiDexEnabled true
resConfigs "en"
ndk {
abiFilters "armeabi-v7a", "x86"
}
externalNativeBuild {
cmake {
cppFlags ""
}
sourceSets.main {
jni.srcDirs = []
jniLibs.srcDirs = []
}
}
signingConfig signingConfigs.config
packagingOptions {
exclude "lib/arm64-v8a/libreactnativejni.so"
}
aaptOptions {
cruncherEnabled = false
}
}
buildTypes {
release {
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFile getDefaultDexGuardFile('dexguard-release.pro')
signingConfig signingConfigs.config
proguardFile 'dexguard-project.txt'
proguardFile 'proguard-project.txt'
}
debug {
signingConfig signingConfigs.config
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
dexOptions {
javaMaxHeapSize "4g"
}
productFlavors {
}
externalNativeBuild {
cmake {
path 'CMakeLists.txt'
}
}
}
dependencies {
compile project(path: ':HeaderListView')
compile project(path: ':MPChartLib')
//compile files('libs/okhttp-3.4.1.jar')
compile('com.squareup.okhttp3:okhttp:3.7.0') {
force = true
}
// compile files('libs/okio-1.10.0.jar'){
// force=true
// }
compile('com.squareup.okio:okio:1.10.0') {
force = true
}
compile('com.peekaboo.connect:sdk:2.0.65') {
exclude module: 'com.android.support:appcompat-v7'
exclude group: 'com.facebook.infer'
}
// compile(name: 'peekaboo-guru-sdk', ext: 'aar')
// compile project(':react-native-config')
// compile project(path: ':safetynetlib')
compile 'com.android.support:appcompat-v7:26.0.2'
compile 'com.android.support:support-v4:26.0.2'
compile 'com.android.support:recyclerview-v7:26.0.2'
compile 'com.android.support:design:26.0.2'
// compile 'com.google.android.gms:play-services-vision:9.8.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'se.simbio.encryption:library:1.2.0'
compile 'com.itextpdf:itextpdf:5.3.2'
compile 'com.scottyab:rootbeer-lib:0.0.4'
compile 'com.android.support.constraint:constraint-layout:1.0.0'
compile 'com.android.support:support-annotations:26.0.2'
compile files('libs/dexguard-runtime.jar')
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.github.lzyzsd:circleprogress:1.2.1'
compile 'pl.bclogic:pulsator4droid:1.0.3'
compile 'com.facebook.android:facebook-android-sdk:4.35.0'
// //Firebase
compile 'com.google.firebase:firebase-core:16.0.0'
}
apply plugin: 'com.google.gms.google-services'
Журналы ошибок:
Не удалось найти aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).Поиск в следующих местах: https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar