gradle

如何在Flutter中集成华为认证服务

冷暖自知 提交于 2021-01-29 07:41:31
如何在Flutter中集成华为认证服务 最近发现华为AGC认证服务支持Flutter框架了,期待这个平台的支持已经很久了,所以迫不及待接入了,关联了自己的邮箱等账号。 集成步骤 安装flutter环境 a) 下载Flutter sdk包,地址: https://flutter.dev/docs/get-started/install/windows 将压缩包解压到任意文件夹,例如D:\Flutter b) 将flutter命令文件添加到环境变量中,此处我添加的Path为D:\Flutter\flutter_windows_1.22.2-stable\flutter\bin。 c) 在Android Studio中点击“File-Settings-Plugins”,下载Flutter和Dart插件,重启Android Studio使插件生效。 开通服务&创建工程 a) 在AGC创建Android应用并开通认证服务 b) 开启认证服务中的匿名帐号,手机帐号,邮箱帐号 c) 在Android Studio中新建Flutter工程 d) 将agconnect-services.json文件放入Android/app目录下 e) 配置Maven仓地址和AGC插件地址。 a. 打开Flutter项目android文件夹下的build.gradle文件。 b. 在allprojects -

Protractor with jasmine does not show stack traces to line with error

岁酱吖の 提交于 2021-01-29 07:09:37
问题 I've got a protractor test that does this: it('Test', async () => { throw new Error() } When this errors, it outputs this: ✗ Test - Failed: Error at callWhenIdle (.../node_modules/jasminewd2/index.js:62:5) at .../node_modules/jasminewd2/index.js:127:13 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) (node:43369) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: EPIPE write EPIPE How do I get a useful stack trace that says the

Adding Google Language API results in DuplicateRelativeFileException

守給你的承諾、 提交于 2021-01-29 06:59:39
问题 In an android studio project I added implementation 'com.google.cloud:google-cloud-language:1.40.0' to the app's gradle file. This results in the following error on building: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute

I need to have an gradle task to execute my cucumber runner class and execute cucumber tets

匆匆过客 提交于 2021-01-29 06:39:48
问题 I have my Cucumber Runner class as shown below and i need to call and run this runner class through gradle so that in turn it executes my stepdefinition / tests as we do it in normal cucumber project import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeSuite; import com.inspire.brands.helper.reporter.ReporterUtil; import io.cucumber.testng.AbstractTestNGCucumberTests; import io

Gradle project refresh failed Error: Cannot find JAR 'kotlin-compiler-embeddable-1.1.3-2.jar'

故事扮演 提交于 2021-01-29 06:24:34
问题 I created a new project and getting following Gradle Sync error. Gradle 'ProjectX' project refresh failed Error: Cannot find JAR 'kotlin-compiler-embeddable-1.1.3-2.jar' required by module 'gradle-kotlin-dsl' using classpath or distribution. I am not using 'Kotlin' and using Android 4.0(IceCreamSandwich). Below is my build.gradle buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' // NOTE: Do not place your application dependencies

Flutter Image_picker could not resolve all artifacts for configuration

做~自己de王妃 提交于 2021-01-29 06:24:30
问题 after add image picker package in pubspec.yaml file. I am try to run my flutter app but the run failed. The Error That I have when I am try to run flutter project : FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':image_picker'. > Could not resolve all artifacts for configuration ':image_picker:classpath'. > Could not find crash.jar (com.android.tools.analytics-library:crash:26.3.0). Searched in the following locations: https://dl.google.com

Adding buildFeatures { compose true } causes build to take indefinitely. How to investigate issue?

五迷三道 提交于 2021-01-29 06:17:49
问题 After having a good experience with Jetpack Compose in new projects I decided to add Compose to an existing project of my company. After making all the necessary changes and writing the first lines of compose code I tried to build the project for the first time. Unfortunately, the build process gets stuck during ui:compileDebugKotlin multiple times (I waited for almost 45m and then stopped the build). I never got any error message, all I could conclude is, that the problem arises after adding

Build Failing with an exception when adding firebase_auth or cloud_firestore in the pubspec.yaml file (firebase_core is working):

限于喜欢 提交于 2021-01-29 05:55:54
问题 From the run terminal of android studio: FAILURE: Build failed with an exception. Where: Script 'C:\Flutter\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 362 What went wrong: A problem occurred configuring project ':cloud_firestore_web'. Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Try: Run with --stacktrace option to get the stack trace. Run with

keystore password was incorrect when building Appbundle (Flutter)

ε祈祈猫儿з 提交于 2021-01-29 05:54:38
问题 So I am currently trying to create an Appbundle so I can upload my app to the google play store. Unfortunately, I encountered a problem with the signature release portion of the project. Below is the copy of the error from the terminal: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:packageRelease'. > com.android.ide.common.signing.KeytoolException: Failed to read key key from store "/Users/herb/Downloads/morningly/android/app/key.jks": keystore

Build Failing with an exception when adding firebase_auth or cloud_firestore in the pubspec.yaml file (firebase_core is working):

冷暖自知 提交于 2021-01-29 05:51:05
问题 From the run terminal of android studio: FAILURE: Build failed with an exception. Where: Script 'C:\Flutter\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 362 What went wrong: A problem occurred configuring project ':cloud_firestore_web'. Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Try: Run with --stacktrace option to get the stack trace. Run with