i got this error plz help Program type already present: android.support.v4.app.LoaderManager

200
September 28, 2018, at 02:50 AM

When i am running my android app on my app the compiler gives this all error

i got this error plz help

Program type already present: android.support.v4.app.LoaderManager
java.lang.RuntimeException: 
com.android.builder.dexing.DexArchiveMergerException: Error while merging 
dex archives: 
C:\Users\xxx\xxx\app\build\intermediates\transforms\dexBuilder\debug\1.jar,
com.android.tools.r8.CompilationFailedException: Compilation failed to 
complete 
com.android.tools.r8.utils.AbortException
Answer 1

Try going into gradle scripts, in build.gradle under buildTypes{ } and add this line "multiDexEnabled true" and then sync Gradle.

For example :

buildTypes { 
   release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
      multiDexEnabled true 
   } 
}

READ ALSO
Replace microphone by audio

Replace microphone by audio

Is it possible to replace the mic of the android as per pre-set audio during calling?

106
Best way to save your UserId?

Best way to save your UserId?

What is the cleanest way to save your own UserId in a android chat app with clean architecture? I want to get the Id from nearly everywhereBut I think a Database would be to awkward for this

128
Acessing text view from table in Android

Acessing text view from table in Android

I want to know if there is a way to define onclick listener to only text views of a table layout and also get index of each text view ( there are more than 1 tablerow) ?

138
Android USB - Understanding controlTransfer method

Android USB - Understanding controlTransfer method

I am about to start a new project that works with a USB HID deviceI know to send a command to a HID device, you use the following method:

200