У меня проблема с попыткой сделать сборку релиза в Android Studio, но я получаю некоторые предупреждения
Я прокомментировал некоторые зависимости, чтобы избежать компиляции предупреждений
(name: 'support-v4-24.1.1 ', ext:' aar ') и компилировать (имя:' unity-debug ', ext:' aar ')
, но после сборки приложение вылетает и не открываетсяв моем смартфоне
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}
allprojects {
repositories {
google()
flatDir {
dirs 'libs'
}
}
}
apply plugin: 'com.android.application'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(name: 'androidx.arch.core.core-runtime-2.0.0', ext:'aar')
compile(name: 'androidx.asynclayoutinflater.asynclayoutinflater-1.0.0', ext:'aar')
compile(name: 'androidx.coordinatorlayout.coordinatorlayout-1.0.0', ext:'aar')
compile(name: 'androidx.core.core-1.0.0', ext:'aar')
compile(name: 'androidx.cursoradapter.cursoradapter-1.0.0', ext:'aar')
compile(name: 'androidx.customview.customview-1.0.0', ext:'aar')
compile(name: 'androidx.documentfile.documentfile-1.0.0', ext:'aar')
compile(name: 'androidx.drawerlayout.drawerlayout-1.0.0', ext:'aar')
compile(name: 'androidx.fragment.fragment-1.0.0', ext:'aar')
compile(name: 'androidx.interpolator.interpolator-1.0.0', ext:'aar')
compile(name: 'androidx.legacy.legacy-support-core-ui-1.0.0', ext:'aar')
compile(name: 'androidx.legacy.legacy-support-core-utils-1.0.0', ext:'aar')
compile(name: 'androidx.lifecycle.lifecycle-livedata-2.0.0', ext:'aar')
compile(name: 'androidx.lifecycle.lifecycle-livedata-core-2.0.0', ext:'aar')
compile(name: 'androidx.lifecycle.lifecycle-runtime-2.0.0', ext:'aar')
compile(name: 'androidx.lifecycle.lifecycle-viewmodel-2.0.0', ext:'aar')
compile(name: 'androidx.loader.loader-1.0.0', ext:'aar')
compile(name: 'androidx.localbroadcastmanager.localbroadcastmanager-1.0.0', ext:'aar')
compile(name: 'androidx.print.print-1.0.0', ext:'aar')
compile(name: 'androidx.slidingpanelayout.slidingpanelayout-1.0.0', ext:'aar')
compile(name: 'androidx.swiperefreshlayout.swiperefreshlayout-1.0.0', ext:'aar')
compile(name: 'androidx.versionedparcelable.versionedparcelable-1.0.0', ext:'aar')
compile(name: 'androidx.viewpager.viewpager-1.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-ads-identifier-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-base-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-basement-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-measurement-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-measurement-api-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-measurement-base-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-measurement-impl-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-measurement-sdk-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-measurement-sdk-api-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-stats-17.0.0', ext:'aar')
compile(name: 'com.google.android.gms.play-services-tasks-17.0.0', ext:'aar')
compile(name: 'com.google.firebase.firebase-analytics-17.0.0', ext:'aar')
compile(name: 'com.google.firebase.firebase-app-unity-6.2.2', ext:'aar')
compile(name: 'com.google.firebase.firebase-common-18.0.0', ext:'aar')
compile(name: 'com.google.firebase.firebase-iid-19.0.1', ext:'aar')
compile(name: 'com.google.firebase.firebase-iid-interop-17.0.0', ext:'aar')
compile(name: 'com.google.firebase.firebase-instance-id-unity-6.2.2', ext:'aar')
compile(name: 'com.google.firebase.firebase-measurement-connector-18.0.0', ext:'aar')
compile(name: 'com.google.firebase.firebase-messaging-19.0.1', ext:'aar')
compile(name: 'com.google.firebase.firebase-messaging-unity-6.2.2', ext:'aar')
compile(name: 'support-v4-24.1.1', ext:'aar')
compile(name: 'unity-debug', ext:'aar')
compile(name: 'unityplugin-debug', ext:'aar')
compile project(':Firebase')
}
android {
compileSdkVersion 29
buildToolsVersion '29.0.0'
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
applicationId 'co.com.company.name'
//multiDexEnabled true
}
lintOptions {
abortOnError false
}
aaptOptions {
noCompress '.unity3d', '.ress', '.resource', '.obb','google-services-desktop.json','artoolkit/camera parameters/camera_para-macbook_pro-1280x720.dat','artoolkit/camera parameters/camera_para-macbook_pro-640x480.dat','artoolkit/camera parameters/camera_para.dat','artoolkit/images/1 (1).jpg','artoolkit/images/1.jpg','artoolkit/images/10.jpg','artoolkit/images/11.jpg','artoolkit/images/12.jpg','artoolkit/images/13.jpg','artoolkit/images/14.jpg','artoolkit/images/15.jpg','artoolkit/images/16.jpg','artoolkit/images/17.jpg','artoolkit/images/18.jpg','artoolkit/images/19.jpg','artoolkit/images/2.jpg','artoolkit/images/20.jpg','artoolkit/images/21.jpg','artoolkit/images/22.jpg','artoolkit/images/23.jpg','artoolkit/images/24.jpg','artoolkit/images/25.jpg','artoolkit/images/26.jpg','artoolkit/images/27.jpg','artoolkit/images/28.jpg','artoolkit/images/29.jpg','artoolkit/images/3.jpg','artoolkit/images/30.jpg','artoolkit/images/4.jpg','artoolkit/images/5.jpg','artoolkit/images/6.jpg','artoolkit/images/7.jpg','artoolkit/images/8.jpg','artoolkit/images/9.jpg','artoolkit/images/sticker-mi-ruta-articulados-2.jpg','artoolkit/images/marcadorcustom.jpg','artoolkit/images/marcadorcustom.png','artoolkit/images/pacho.jpg','artoolkit/images/qr_img txt.jpg','artoolkit/images/qr_img.jpg','artoolkit/images/qr_img_difuminado.jpg','artoolkit/patterns/ar.patt','artoolkit/patterns/marker1.patt','artoolkit/patterns/marker10.patt','artoolkit/patterns/marker11.patt','artoolkit/patterns/marker12.patt','artoolkit/patterns/marker13.patt','artoolkit/patterns/marker14.patt','artoolkit/patterns/marker15.patt','artoolkit/patterns/marker16.patt','artoolkit/patterns/marker17.patt','artoolkit/patterns/marker18.patt','artoolkit/patterns/marker19.patt','artoolkit/patterns/marker2.patt','artoolkit/patterns/marker20.patt','artoolkit/patterns/marker21.patt','artoolkit/patterns/marker22.patt','artoolkit/patterns/marker23.patt','artoolkit/patterns/marker24.patt','artoolkit/patterns/marker25.patt','artoolkit/patterns/marker26.patt','artoolkit/patterns/marker27.patt','artoolkit/patterns/marker28.patt','artoolkit/patterns/marker29.patt','artoolkit/patterns/marker3.patt','artoolkit/patterns/marker30.patt','artoolkit/patterns/marker31.patt','artoolkit/patterns/marker32.patt','artoolkit/patterns/marker33.patt','artoolkit/patterns/marker34.patt','artoolkit/patterns/marker35.patt','artoolkit/patterns/marker36.patt','artoolkit/patterns/marker37.patt','artoolkit/patterns/marker38.patt','artoolkit/patterns/marker39.patt','artoolkit/patterns/marker4.patt','artoolkit/patterns/marker40.patt','artoolkit/patterns/marker41.patt','artoolkit/patterns/marker42.patt','artoolkit/patterns/marker43.patt','artoolkit/patterns/marker5.patt','artoolkit/patterns/marker6.patt','artoolkit/patterns/marker64.patt','artoolkit/patterns/marker6v.patt','artoolkit/patterns/marker7.patt','artoolkit/patterns/marker8.patt','artoolkit/patterns/marker9.patt','artoolkit/patterns/mi001.patt','artoolkit/patterns/prueba10f.patt','artoolkit/patterns/prueba1f.patt','artoolkit/patterns/prueba3f.patt','artoolkit/patterns/prueba41f.patt','artoolkit/patterns/prueba42f.patt','artoolkit/patterns/prueba6f.patt','artoolkit/patterns/prueba8f.patt','artoolkit/patterns/pruebaf1.patt','artoolkit/patterns/pruebaf10.patt','artoolkit/patterns/pruebaf3.patt','artoolkit/patterns/pruebaf41.patt','artoolkit/patterns/pruebaf42.patt','artoolkit/patterns/pruebaf6.patt','artoolkit/patterns/pruebaf8.patt','artoolkit/patterns/qr_img.patt'
}
signingConfigs { release {
storeFile file('SOME PATH')
storePassword 'SOME PASSWORD'
keyAlias 'SOME ALIAS'
keyPassword 'SOME PASSWORD'
} }
buildTypes {
debug {
minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt','proguard-user.txt'
jniDebuggable true
}
release {
minifyEnabled true
//shrinkResources true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt','proguard-user.txt'
signingConfig signingConfigs.release
}
}
/*dexOptions {
incremental = false
preDexLibraries = false
}*/
}
Предупреждение: дубликат записи zip [класс.jar: com / unity3d / player / a $ a.class]
и
дублирование записи zip[android / support / v4 / a / a $ a $ a.class == classes.jar: android / support / v4 / app / INotificationSideChannel $ Stub $ Proxy.class]