-
Notifications
You must be signed in to change notification settings - Fork 274
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
Issue compiling protos... #758
Comments
That version of protobuf is from 2016. Use a newer version (e.g., 3.25.3)
|
Hi - I modified my build.gradle as below... plugins { android {
} dependencies {
} protobuf { but am still receiving the following when running ./gradlew build ...
FAILURE: Build failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 966ms I fear I am misunderstanding something as I am fairly new the plugin. |
Revised gradle build output...
FAILURE: Build failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 862ms |
You don't need protoc-gen-javalite, it is a builtin in later versions of protobuf. |
Try applying the protobuf plugin before the Kotlin plugin.
|
Hi, I am trying to build a simple android app that uses protocol buffers (and will try to move the protocol buffer code into an android library in the same project thereafter if successful).
Here is my build.gradle...
and here is the output...
I would be grateful for any suggestions as to where I might be going wrong (if I have tried to do a similar thing with the kotlin DSL but had no luck) or let me know if you need any more information (gradle version is 8.7)
The text was updated successfully, but these errors were encountered: