Skip to content

Cannot build Android app #689

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

Closed
WildPoYo opened this issue Apr 26, 2022 · 2 comments
Closed

Cannot build Android app #689

WildPoYo opened this issue Apr 26, 2022 · 2 comments
Labels

Comments

@WildPoYo
Copy link

WildPoYo commented Apr 26, 2022

Application is stuck in "Building Android Project" state and throws the exception below.

4.0b7

Exception in thread "Thread-10" java.lang.NoSuchMethodError: 'processing.mode.java.preproc.PreprocessorResult processing.mode.android.AndroidBuild.preprocess(java.io.File, java.lang.String, processing.mode.java.preproc.PdePreprocessor, boolean)'
at processing.mode.android.AndroidBuild.createProject(AndroidBuild.java:252)
at processing.mode.android.AndroidBuild.build(AndroidBuild.java:223)
at processing.mode.android.AndroidMode.handleRunEmulator(AndroidMode.java:241)
at processing.mode.android.AndroidEditor$15.run(AndroidEditor.java:390)

@benfry benfry transferred this issue from benfry/processing4 Apr 26, 2022
@rupeshkumar22
Copy link
Contributor

It seems that the method named preprocess used here is not defined or may have been removed from AndroidBuild.java in the past updatation. There is a method PreprocessorResult write. Is it supposed to be used here after using PdePreprocessor.build()? @codeanticode

@codeanticode
Copy link
Contributor

codeanticode commented Apr 27, 2022

@WildPoYo @rupesh-kumar-lpu you have to compile the mode using the latest branch from Processing that introduces some changes in the preprocessor(), precisely to fix this issue: #663

Also note that the latest release of the Android mode for Processing 4 is only compatible with 4.0b8 for that same reason.

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

No branches or pull requests

3 participants