i'm trying to install cordova and open a project on eclipse...this error is coming out when typing cordova build android i setted the proxy gradle.properties under project_folder\prova\platforms\android also under all gradle directory...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.0.0+.
Required by:
:android:unspecified
> Failed to list versions for com.android.tools.build:gradle.
> Unable to load Maven meta-data from https://repo1.maven.org/maven2/co
m/android/tools/build/gradle/maven-metadata.xml.
> Could not GET 'https://repo1.maven.org/maven2/com/android/tools/bu
ild/gradle/maven-metadata.xml'.
> Connection reset by peer: connect
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 25.641 secs
Built the following apk(s):
proxy settings:
systemProp.http.proxyHost=***
systemProp.http.proxyPort=3128
systemProp.http.proxyUser=***
systemProp.http.proxyPassword=***
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=***
systemProp.https.proxyPort=***
systemProp.https.proxyUser=***
systemProp.https.proxyPassword=***
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
i've already read other post so i've already tryied different procedure...
Related
I am just trying to follow the gradle tutorial to build a scala project https://docs.gradle.org/current/samples/sample_building_scala_applications.html.
However, I am facing the following error when I give the gradle commands "jar", "build" and "run":
Task :app:compileScala FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileScala'.
Could not resolve all files for configuration ':app:compileClasspath'.
Could not resolve org.scala-lang:scala-library:2.13.6.
Required by:
project :app
Could not resolve org.scala-lang:scala-library:2.13.6.
Could not get resource 'https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.pom'.
Could not GET 'https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.pom'.
Connection reset
Could not resolve com.google.guava:guava:30.1.1-jre.
Required by:
project :app
Could not resolve com.google.guava:guava:30.1.1-jre.
Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.pom'.
Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.pom'.
Connection reset
* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
1 actionable task: 1 executed
Does someone know how to solve it? My main goal is to generate a jar file of the project.
What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve androidx.room:room-common:[2.2.5].
Required by:
project :app > project :workmanager > androidx.work:work-runtime:2.4.0 > androidx.room:room-runtime:2.2.5
> Failed to list versions for androidx.room:room-common.
> Unable to load Maven meta-data from https://google.bintray.com/exoplayer/androidx/room/room-common/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/androidx/room/room-common/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/androidx/room/room-common/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
seems to be your project level build.gradle file using this : maven { url 'https://google.bintray.com/exoplayer/' } it should be replaced by maven { url 'https://dl.google.com/dl/android/maven2'}
On Github while working with my friend on some code (actually experimental malware for pentesting), we set up a Gradle check, and it failed. When it ran, it said this:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'wurstplus-two'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
Required by:
project :
> Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
> Unable to load Maven meta-data from http://repo.spongepowered.org/maven/net/minecraftforge/gradle/ForgeGradle/2.3-SNAPSHOT/maven-metadata.xml.
> Could not get resource 'http://repo.spongepowered.org/maven/net/minecraftforge/gradle/ForgeGradle/2.3-SNAPSHOT/maven-metadata.xml'.
> Could not GET 'http://repo.spongepowered.org/maven/net/minecraftforge/gradle/ForgeGradle/2.3-SNAPSHOT/maven-metadata.xml'. Received status code 520 from server: Origin Error
> Could not resolve org.spongepowered:mixingradle:0.4-SNAPSHOT.
Required by:
project :
> Skipped due to earlier error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
Error: Process completed with exit code 1.
I know we added some files, so I was thinking that might be what happened. I don't know any Gradle, so that's really why I'm asking.
There's actually 2 questions: What does "exit code 1" mean, and was it triggered by those new files being added? The Github repository is here: https://github.com/Scottw1e/wurstplus-two.
try replacing http://repo.spongepowered.org/maven/ with https://repo.spongepowered.org/maven/ in your build.gradle file
What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve project :path_provider_macos.
Required by:
project :app > project :path_provider
Unable to find a matching configuration of project :path_provider_macos: None of the consumable configurations have attributes.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
Finished with error: Gradle task assembleDebug failed with exit code 1
Some imports are missing. Try flutter pub get to update packages, or flutter pub cache repair, which will re-import all dependencies.
thank everyone , i get the solution about my problem : go to your Flutter sdk folder ,then go to .pub-cache\hosted\pub.dartlang.org\ ,if there have a path_provider_macos-0.0.4 folder ,delete it ,if no ,you try go .pub-cache\hosted\pub.flutter-io.cn\ , and remove path_provider_macos-0.0.4 folder
Deleted the folder you said,but show this wrong : Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_macos.
The following is detailed:
> A problem occurred configuring project ':flutter'.
> Could not resolve all dependencies for configuration ':flutter:embed'.
> Could not resolve project :path_provider_macos.
Required by:
project :flutter
> Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_macos.
> Could not resolve project :path_provider_linux.
Required by:
project :flutter
> Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_linux.
I've got problems at building the OpenIAB unity package.
The sdk.dir is already set in the local.properties file.
This is the log:
Denniss-MBP:unity_plugin dennisxxx$ ../gradlew clean buildPlugin --info
Starting Build
Settings evaluated using settings file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/settings.gradle'.
Projects loaded. Root project using build file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/build.gradle'.
Included projects: [root project 'OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62', project ':Unity Plugin', project ':library']
Evaluating root project 'OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62' using build file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/build.gradle'.
Evaluating project ':Unity Plugin' using build file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/unity_plugin/build.gradle'.
Evaluating project ':library' using empty build file.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':Unity Plugin'.
> Configuration with name 'default' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 4.414 secs
Denniss-MBP:unity_plugin dennisxxx$
What can I do to fix this issue?