Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build any sketch after android studio install error code d8 classes too large for dex file #737

Open
paulgoux opened this issue May 9, 2023 · 3 comments

Comments

@paulgoux
Copy link

paulgoux commented May 9, 2023

after a simple install of androis studio and android mode in processing, any build fails with the following error message

ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 131430 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.

in processing previous iteration those were the steps required to build. I'm using lenovo ideaflex pad 5, with ryzen architecture, on windows 10.

It does provide a how to resolve this issue, but its out of the scope of my understanding.

https://developer.android.com/build/multidex#java

2023-05-09 01_33_19-Settings

2023-05-09 01_33_41-circle _ Processing 4 2

@benfry benfry transferred this issue from benfry/processing4 May 11, 2023
@ranaaditya
Copy link
Member

after a simple install of androis studio and android mode in processing, any build fails with the following error message

ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 131430 > 65536) com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: The number of method references in a .dex file cannot exceed 64K.

in processing previous iteration those were the steps required to build. I'm using lenovo ideaflex pad 5, with ryzen architecture, on windows 10.

It does provide a how to resolve this issue, but its out of the scope of my understanding.

https://developer.android.com/build/multidex#java

2023-05-09 01_33_19-Settings

2023-05-09 01_33_41-circle _ Processing 4 2

hi @paulgoux , are you using android studio for using processing-android ?

@ranaaditya
Copy link
Member

@paulgoux are you using processing-android as 3rd party lib in android studio or just trying to setup processing in andoid studio ?

For referrence:
setup processing-android

Thanks !

@paulgoux
Copy link
Author

i reinstalled everything and works other than the video library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants