-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Gradle build error: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sdk:transformClassesWithRealmTransformerForDebug'. #6082
Comments
can you share your Gradle config? |
At project level: This is building fine. When I change 5.3.0 to 5.4.0, the build error comes about. |
we need to see the entire configuration ... how's the project structured? does it happen on full build or incremental? Ideally, if you can isolate the issue into a sample project it will be helpful to investigate |
I will try my best to do it as soon as I can. Thanks @nhachicha! |
Getting the same issue for sure. realm-gradle-plugin version 5.4.0 Nothing-special "development" flavor is present in single dimension. Stacktrace:
|
@cmelchior I guess it's not so simple after all 😢 |
@cmelchior @Zhuinden talking about that: configuration target sdk is not set at all, think that's allowed gradle configuration behavior starting from some moment. targetSdkVersion setting is solving the problem indeed, but maybe it is needed to implement some sort of fallback in realm to try acquiring targetSdkVersion or compileSdkVersion if failed, something like that. |
@DummyCo I have targetSdkVersion setup In my app level build.gradle, if that's what you mean.
|
I tried various approach reproducing this, including completely removing the Fixing the null pointer will be trivial, so I'll just do that, but if anybody is able to make a sample project that can reproduce this I would very much appreciate it so we can understand why this is happening. |
A fix (I hope) for this has been released in |
@cmelchior I tested with 5.5.0-SNAPSHOT. I can confirm that I was able to build successfully without the above exception. I also tried with 5.4.0 in a separate project and was not able to reproduce the issue in a single module project. It is only when I add a realm library project as a dependency that 5.4.0 was giving the exception. |
A fix was released in 5.4.1 |
i am also get the errors like this |
this happened after i tried to localization using translation editor in strings.xml pls any body know how to solve the problem? i want to make automatic translation of my app to indonesian thanks for advance! |
Anyone solution?? |
This exception stack doesn't say much, you need to check https://stackoverflow.com/questions/16633956/android-studio-where-is-the-compiler-error-output-window |
I'm building version from the terminal, all i get is "error: package javax.annotation.processing does not exist" and |
Hey anyone fixed this issue? I'm having trouble right now |
I have fixed that by deleting double string.
Pada tanggal 5 Mar 2019 01.12, "Marco Cangela Garujo" <
notifications@github.com> menulis:
… Hey anyone fixed this issue? I'm having trouble right now
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6082 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWMft807aZX6tMEvx3UHdmPBqp9u0t0gks5vTWILgaJpZM4Vfx-Z>
.
|
Hello Everyone, Can someone help me here. I updated Gradle version from 4.10.1 to 5.2.1 and
Following are logs: 15:12:08.490 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Anyone any idea about this, I would really appreciate if someone can help on this. Thank You very much. |
This doesn't sound like Realm problem. I've seen these errors in outdated version of Protobuf Gradle Plugin. |
I get the same issue with the latest version :
|
Goal
On realm-gradle-plugin:5.3.0, the gradle seems to work fine but as I upgrade to realm-gradle-plugin:5.4.0, the build creation is failing.
Expected Results
Actual Results
Steps & Code to Reproduce
Code Sample
Version of Realm and tooling
Realm version(s): ?
Realm sync feature enabled: yes/no
Android Studio version: 3.1.3
Which Android version and device:
The text was updated successfully, but these errors were encountered: