-
Notifications
You must be signed in to change notification settings - Fork 127
Preprocessor: Android symbols not working? #708
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
Comments
Hi @stephanedupont. Android Studio varies depending on JDK target. You might try: annotationProcessor 'systems.manifold:manifold-preprocessor:2025.1.14'
annotationProcessor 'systems.manifold:manifold-preprocessor-android-syms:2025.1.14'
testAnnotationProcessor 'systems.manifold:manifold-preprocessor:2025.1.14'
testAnnotationProcessor 'systems.manifold:manifold-preprocessor-android-syms:2025.1.14' Let me know if that doesn't work for you. |
Thank you @rsmckinney. Unfortunately, that still doesn't work. |
@rsmckinney: is there a way to debug what's happening? |
@stephanedupont sorry for the delay. Can you provide more context re your environment: OS, manifold version, manifold IJ plugin version, intellij/studio version, etc. Thanks! |
Thank you @rsmckinney. OS: Windows 11 compileOnly 'systems.manifold:manifold-preprocessor:2025.1.14' (I'm available for sharing my screen if you need to debug the session.) |
I'm trying to use Manifold as a preprocessor in a Android Studio project.
I installed manifold-ij plugin, and added this to the app build.gradle file:
... and preprocessor seems to work: I can define a symbol in a file and use it with a #if directive.
But I can't seem to make Android symbols working. For example, my project is in debug mode currently, and if I check the BuildConfig.java file I have this:
... but it doesn't work:
I also tested other things like
#if FLAVOR
, and nothing seems to work.Did I miss some steps?
The text was updated successfully, but these errors were encountered: