Not displayed in the APK due to library conflict, I think. This happened after I added Cloud Messaging to my project to send notifications.

build.gradle project:

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { jcenter() } } **А это Build.gradle модуль** apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion '25.0.0' defaultConfig { applicationId 'com.panda.shop' minSdkVersion 14 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile files('libs/android-support-v4.jar') compile files('libs/Parse-1.3.0.jar') compile files('libs/signpost-commonshttp4-1.2.1.2.jar') compile files('libs/signpost-core-1.2.1.2.jar') compile files('libs/signpost-jetty6-1.2.1.2.jar') compile 'com.google.firebase:firebase-messaging:10.0.1' } android { lintOptions { disable "ResourceType" } } apply plugin: 'com.google.gms.google-services' 

mistake:

Error: Error converting bytecode to dex: Cause: com.android.dex.DexException: select Landroid support / v4 / accessibilityservice / AccessibilityServiceInfoCompat $ AccessibilityServiceInfoVersionImpl;

Error: Execution failed for task ': app: transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads = 4 --output C: \ Android \ NEW \ Android \ app \ build \ intermediates \ transforms \ dex \ debug \ folders \ 1000 \ 1f \ main C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ classes_e1ef8c32d1d939d7e3fab30f385c46ff329880b1.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ signpost-jetty6-1.2.1.2_dbcfed19551d55b26b6970cf46c3edabbeeb25fd.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ support-annotations-24.0.0_67f9b1a339ccda4dcea will be your first \ build \ intermediates \ pre-dexed \ debug \ classes_8bc008b6b9c50e51b593fe5de810fdb331f1b341.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ internal_impl-24.0.0_42f6022a482 e92b.org jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ classes_c7aa46666fa5b054b08b8ba82f02f7c023ba37429.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ c_year_361661641616616161661616630401.jar : \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ classes_e593af53060434725b3827c6c006ff51e468070f.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ signpost-commonshttp4-1.2. 1.2_d19105e8baa6b736b3dea9cb70fe352a4f1d759ea.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed ar a ug ug ug ug classes classes classes 62 62 62 Android deb deb deb deb d 15 15 15 15 15 a a a deb deb deb ar ar ar -1.3.0_b190863964784ccfc98c57037a8d71ff5fa2d908.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ android-support-v4_df099c272c732cc3340ba85d1271159723714f90.jar C: \ Android \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ 714484491e80e73e4e4e4e4o οf interfares \ pre-dexed \ debug \ 714484491e80e73e4e4e4e4e4a 7f inter inter iates inter inter inter inter inter inter inter inter inter inter inter inter inter inter inter inter inter inter \ NEW \ Android \ app \ build \ intermediates \ pre-dexed \ debug \ signpost-core-1.2.1.2_dd279100f6b653e04da927a0a1b7c973fa7fc47c.jar}

  • 2
    Remove compile files('libs/android-support-v4.jar') - firebase pulls another (another) version of this library. - woesss pm
  • I tried to exclude the compile files('libs/android-support-v4.jar') library compile files('libs/android-support-v4.jar') the appCompact v7.... library appCompact v7.... but then conflicts in the outdated HttpClient ** methods from the library as I assume ** compile files('libs/signpost-commonshttp4-1.2.1.2.jar') - Ilham
  • This, in my opinion, is another problem: Apache HTTP Client Removal . - woesss
  • And targetSdkVersion 22 is another problem. Google Play at least Android 8.0 (API level 26) from August 1, 2018, and that app updates target Android 8.0 from November 1, 2018. - Yura Ivanov

1 answer 1

I followed this advice.

Remove compile files ('libs / android-support-v4.jar') - firebase pulls another (another) version of this library. - woesss

And deleted the compile files('libs/android-support-v4.jar') library compile files('libs/android-support-v4.jar')

And also deleted it from the lib folder.

And replaced it with the built-in library

compile 'com.android.support:support-v4:26.0.0-alpha1' and the problem is solved.