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
Directory '/Users/project/app/build/extracted-include-protos/main' specified for property '$3' does not exist. #311
Comments
What is the protobuf-gradle-plugin version you are using? Supposing it was working with an older Android plugin version, what was that version? |
Thanks for the answer. buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.google.gms:google-services:4.2.0'
classpath "io.realm:realm-gradle-plugin:3.7.2"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6'
}
} |
Have you tried upgrading |
I get the same issue, did not modify anything in the past week on my config, just did a ./gradlew clean today.
|
Error is this: > Task :opentelemetry-sdk:generateProto FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':opentelemetry-sdk:generateProto'.
> Directory '/usr/local/google/home/bdrutu/github/opentelemetry-java/sdk/build/extracted-protos/main' specified for property '$3' does not exist.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights. Some extracted protos seem to be in extracted-include-protos: ls sdk/build
extracted-include-protos |
Any update on this? |
Same issue using Gradle 5.4.1 and plugin id "com.google.protobuf" version "0.8.8" |
@h4ste Can you post more details (e.g., what your build script look like? Is it for Android? Does the directory path really exist in your filesystem)? It would be great if you can provide something that I can reproduce the issue. Thanks. |
@voidzcy This is not an android project. My build script (without dependencies) looks like: plugins {
id 'java'
id 'scala'
// Allows gradle to automagically generate Java protobuf writers/readers -- needed for TensorFlow
// example format
id "com.google.protobuf" version "0.8.8"
}
protobuf {
// Configure the protoc executable
protoc {
// Download from repositories
artifact = 'com.google.protobuf:protoc:3.7.0'
}
}
version '0.1-SNAPSHOT'
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.compilerArgs += ["-proc:none"]
}
repositories {
jcenter()
google()
maven {
url 'https://metamap.nlm.nih.gov/maven2/'
}
maven {
url 'https://jitpack.io'
}
} The error I get is:
However, the build directory does not include an 'extracted-protos' folder: $ ls -1 [path/to/project]/build/
classes
extracted-include-protos
generated
libs
resources
tmp My protobuf files live under |
Your build files look pretty straightforward and nothing seems to be wrong. I tried with @h4ste 's build script in Gradle 5.4.1 but did not get the issue reproduced. For version 0.8.8: The problem seems, when Gradle is configuring In version 0.8.9: We recently made some changes in #317 and we changed to use Also, if you still get the issue, could you please enable the |
If you manually create the missing directory you can get past this to the next bug. |
We tried to manually create the directory but at the extractProto tasks the created directory got deleted because it was thought to be stale. We somehow got passed it by upgrading to Gradle 5.4.1 |
@ryancerium @jpaulodit Which release version are you using? Have you tried with 0.8.9? |
I changed like the below and it works. build.gradle file: gradle-wrapper.properties file: But I am still afraid to upgrade those version higher. it might happen the previous error. |
@voidzcy We're using 0.8.8. Haven't tried 0.8.9. |
v0.8.9 is now also available through the Gradle |
@voidzcy I tried it with v0.8.9 and it works.....Thanks |
@voidzcy I can also confirm that with v0.8.9 my problems are resolved, thanks! |
@voidzcy, I too had faced the same issue, and updating to version 0.8.9 had fixed the problems. Thank you. |
New Android Studio 3.6.1 doesn't work with 0.8.9 or lower? More about it here - google/protobuf-gradle-plugin#311 (comment)
I use Mac OS.
After I update Android Studio 3.4, the following error happens. I can not build the project.
Directory '/Users/project/app/build/extracted-include-protos/main' specified for property '$3' does not exist.
How can I fix it?
Bt reference this is "build.gradle" file content.
"gradle-wrapper.properties" has the following.
When I build the project, the following error happen.
The text was updated successfully, but these errors were encountered: