The error says the number of method references in dex file cannot exceed 64.
I have tried changing the emulator I used and also changed how I launch the app, but no display still.
Asked
Active
Viewed 205 times
1

סטנלי גרונן
- 2,917
- 23
- 46
- 68

Seyi
- 23
- 3
-
Does this answer your question? [The number of method references in a .dex file cannot exceed 64k API 17](https://stackoverflow.com/questions/36785014/the-number-of-method-references-in-a-dex-file-cannot-exceed-64k-api-17) – pr0gramist Nov 22 '19 at 14:56
-
Hi Please try to ask a question in the question itself, not in answer. – Ravinder Kumar Nov 22 '19 at 15:49
-
ok apologize, am new here – Seyi Nov 23 '19 at 20:14
1 Answers
0
Try setting
minSdkVersion = 21
or higher in your gradle file and tell us if it fixes
The problem is with the multidex file of android.
Setting minSdkVersion to 21 or higher enable by default multidex. If you want to keep down the minsdk, you could also follow the answer that was given here: How to enable multidexing with the new Android Multidex support library

Cristian Bregant
- 1,797
- 1
- 16
- 22
-
it gave me this error; What went wrong: Execution failed for task ':app:generateDebugBuildConfig'. > org.xml.sax.SAXParseException; systemId: file:/C:/Users/user/Desktop/payzfast_live/and roid/app/src/main/AndroidManifest.xml; lineNumber: 14; columnNumber: 69; Attribute "name " bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application"., it says build failed, gradletask assembledebug faled – Seyi Nov 23 '19 at 20:16
-
where can i find this also registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) FAILURE: Build failed with an exception. – Seyi Nov 23 '19 at 20:19