I have flutter 1.0.0
In my pubspec.yaml, I added url_launcher: ^4.0.2
Without importing url_launcher, I am getting those errors:
Launching lib\main.dart on BBD100 2 in debug mode...
FAILURE: Build failed with an exception.
What went wrong: Could not resolve all files for configuration ':url_launcher:lintClassPath'.
Could not resolve com.android.tools.lint:lint-gradle:26.2.1. Required by:
project :url_launcher
Could not resolve com.android.tools.lint:lint-gradle:26.2.1.
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Connect to 10.10.208.70:8080 [/10.10.208.70] failed: Connection timed out: connect
Could not resolve com.android.tools.lint:lint-gradle:26.2.1.
Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Connect to 10.10.208.70:8080 [/10.10.208.70] failed: Connection timed out: connect
Could not resolve com.android.tools.lint:lint-gradle:26.2.1.
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Connect to 10.10.208.70:8080 [/10.10.208.70] failed: Connection timed out: connect
Could not resolve com.android.tools.lint:lint-gradle:26.2.1.
Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.2.1/lint-gradle-26.2.1.pom'.
Connect to 10.10.208.70:8080 [/10.10.208.70] failed: Connection timed out: connect
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 1m 33s Gradle task assembleDebug failed with exit code
1 Exited (sigterm)
Anyone can help me to debug that issue?
I tried reinstalling Flutter without any success.
Flutter doctor did not detect anything wrong.
Thanks in advance!
*** How can I use --stacktrace, --info or --debug options?
You can try moving maven_url / google() on top of jcenter() inside
C:\flutter\packages\flutter_tools\gradle\flutter.gradle.
You can follow the steps,
flutter clean
flutter pub get
flutter run
Related
I clearly have no clue why it shows this error. All solutions are appreciated.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
Output: W/ziparchive( 9548): Unable to open 'C:\Users\admin\AppData\Local\Android\sdk\platforms\android-28\android.jar': No such file or directory
error: failed to open APK: I/O error.
Command: C:\Users\admin.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\c8dfbdcc79a1dd8c0cb75349d60f6c77\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\admin\AppData\Local\Android\sdk\platforms\android-28\android.jar\
--manifest\
C:\Users\gaurav\tutorial\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\gaurav\tutorial\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#C:\Users\gaurav\tutorial\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\gaurav\tutorial\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.tutorial\
-0\
apk\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
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 22s
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://flutter.dev/docs/development/androidx-migration for more information on the problem and how to fix it.
Finished with error: Gradle task assembleDebug failed with exit code 1
Update you sdk version to 28. Edit the file build.gradle and change property compileSdkVersion up to 28.
When I run the application gradle is failing to build
Compiler message:
file:///C:/Users/Wellick/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16:
Error: The argument type 'String' can't be assigned to the parameter
type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart'
('file:///C:/Users/Wellick/Documents/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to
'DiagnosticsNode'.
context: context);
^ Compiler failed on C:\Users\Wellick\Desktop\flutter\rapidinho-master\lib\main.dart
FAILURE: Build failed with an exception.
Where: Script 'C:\Users\Wellick\Documents\flutter\packages\flutter_tools\gradle\flutter.gradle'
line: 665
What went wrong: Execution failed for task ':app:compileflutterBuildDebugArm'.
Process 'command 'C:\Users\Wellick\Documents\flutter\bin\flutter.bat'' finished with
non-zero exit value 1
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 24s Finished with error: Gradle task assembleDebug
failed with exit code 1
It seems that this issue was due to the previous version 0.3.4 to be exact, the issue was reported in GitHub and the fix is to upgrade the version to 0.4.0. Currently, the latest version 0.5.0 is more stable than the previous versions.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'rocket.chat.kotlin.sdk'.
Could not resolve all files for configuration ':classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51.
Required by:
project :
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51.
Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.51/kotlin-gradle-plugin-1.2.51.pom'.
Could not HEAD 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.51/kotlin-gradle-plugin-1.2.51.pom'.
Connect to 10.53.130.55:80 [/10.53.130.55] failed: connect timed out
Could not resolve gradle.plugin.org.jmailen.gradle:kotlinter-gradle:1.11.2.
Required by:
project :
Could not resolve gradle.plugin.org.jmailen.gradle:kotlinter-gradle:1.11.2.
Could not get resource 'https://jcenter.bintray.com/gradle/plugin/org/jmailen/gradle/kotlinter-gradle/1.11.2/kotlinter-gradle-1.11.2.pom'.
Could not GET 'https://jcenter.bintray.com/gradle/plugin/org/jmailen/gradle/kotlinter-gradle/1.11.2/kotlinter-gradle-1.11.2.pom'.
Connect to 10.53.130.55:80 [/10.53.130.55] failed: connect timed out
Could not resolve org.jetbrains.dokka:dokka-gradle-plugin:0.9.16.
Required by:
project :
Could not resolve org.jetbrains.dokka:dokka-gradle-plugin:0.9.16.
Could not get resource 'https://jcenter.bintray.com/org/jetbrains/dokka/dokka-gradle-plugin/0.9.16/dokka-gradle-plugin-0.9.16.pom'.
Could not HEAD 'https://jcenter.bintray.com/org/jetbrains/dokka/dokka-gradle-plugin/0.9.16/dokka-gradle-plugin-0.9.16.pom'.
Connect to 10.53.130.55:80 [/10.53.130.55] failed: connect timed out
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
CONFIGURE FAILED in 10s
Cause: connect timed out
when i am trying to build my phonegap app at that time i am getting this error.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/iid/zzc;
* 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: 3.261 secs
is there anything missing? what is wrong? thanks in advance
below, solution works for me.
i checked the 'project.properties' file in android's folder.
target=android-25
android.library.reference.1=CordovaLib
cordova.system.library.1=com.google.android.gms:play-services-maps:+
cordova.system.library.2=com.google.android.gms:play-services-location:+
cordova.gradle.include.1=phonegap-plugin-push/app-push.gradle
cordova.system.library.3=com.android.support:support-v13:23+
cordova.system.library.4=com.google.android.gms:play-services-gcm:10.2+
cordova.system.library.5=me.leolin:ShortcutBadger:1.1.14#aar
cordova.gradle.include.2=card.io.cordova.mobilesdk/app-build.gradle
cordova.gradle.include.3=com.paypal.cordova.mobilesdk/app-build.gradle
cordova.system.library.6=com.google.android.gms:play-services- location:10.2+
cordova.system.library.7=com.razorpay:checkout:1.3.0
cordova.system.library.8=com.android.support:support-v4:25.+
cordova.system.library.9=com.android.support:appcompat-v7:25.+
cordova.system.library.10=com.google.android.gms:play-services-maps:+
cordova.system.library.11=com.google.android.gms:play-services-location:+
i just removed last two lines because those lines seems duplicated. and it works for me
I am trying to install Graph-Aided Search to integrate Neo4j with ElasticSearch (2.3.1) as shown here. But when I try this command line:
plugin install com.graphaware.es/graph-aided-search/2.3.2.0
I get errors:
plugin install com.graphaware.es/graph-aided-search/2.3.2.0
-> Installing com.graphaware.es/graph-aided-search/2.3.2.0...
Trying https://download.elastic.co/com.graphaware.es/graph-aided-search/graph-aided-search-2.3.2.0.zip ...
Trying https://search.maven.org/remotecontent?filepath=com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/2.3.2.0.zip ...
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
And this when I add --verbose for more details:
plugin install com.graphaware.es/graph-aided-search/2.3.2.0 --verbose
-> Installing com.graphaware.es/graph-aided-search/2.3.2.0...
Trying https://download.elastic.co/com.graphaware.es/graph-aided-search/graph-aided-search-2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://search.maven.org/remotecontent?filepath=com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://oss.sonatype.org/service/local/repositories/releases/content/com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/master.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
I looked for that error on google and I found that it might be because of the proxy, and since I am working behind a proxy I tried something that basically worked for others. This is the command line that I tried to install the plugin through proxy:
C:\dev\elasticsearch-2.3.1\bin> plugin -Dhttps.proxyHost=http://example.test.fr -Dhttps.proxyPort=3128 -Dhttps.proxyUser=SomeUser -Dhttps.proxyPassword=Password install com.graphaware.es/graph-aided-search/2.3.2.0
But still it didn't work, and I am still getting the same error. I forced the authentification to the proxy on Internet Explorer, something that usually works for me when I install packages with Maven. However, in that case it didn't work.
I am struggling to integrate my Neo4j database with ElasticSearch, I have been trying that for 4days now and it is taking all my time and cannot work without making this integration with success.
I really appreciate any help or clarification to resolve this error. Thank you.
[UPDATE]
When I try to replace the path, it is still not working. I've tried this command line:
plugin install C:\dev\graph-aided-search-master\target\releases\graph-aided-search-2.4.1.4-SNAPSHOT.zip
and I got this error message:
-> Installing C:\dev\graph-aided-search-master\target\releases\graph-aided-search-2.4.1.4-SNAPSHOT.zip...
ERROR: Invalid prefix or suffix
I put the graph-aided-search Zip file in the same folder as plugin file, so in C:\dev\elasticsearch-2.3.1\bin. Then I tried with the relative path, and I got this message:
> plugin install graph-aided-search-2.4.1.4-SNAPSHOT.zip --verbose
-> Installing graph-aided-search-2.4.1.4-SNAPSHOT.zip...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/graph-aided-search-2.4.1.4-SNAPSHOT.zip/2.3.1/graph-aided-search-2.4.1.4-SNAPSHOT.zip-2.3.1.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
You can download the plugin manually from the MavenRepository
https://mvnrepository.com/artifact/com.graphaware.es/graph-aided-search
The correct syntax is this one:
plugin install com.graphaware.es/graph-aided-search/2.3.2.0 -DproxyHost=exampleHost -DproxyPort=portNumber
It is working now!