gradle

TWA - Digital Asset Link OK but address bar still visible

人盡茶涼 提交于 2020-08-08 06:44:10
问题 I developed a Progressive Web App and I want to publish it in the Play Store as a Trusted Web Activity. It's https://www.bagnoadriatico.it Following this guide https://developers.google.com/web/updates/2019/02/using-twa I downloaded the example from https://github.com/GoogleChromeLabs/svgomg-twa I changed the configuration with def twaManifest = [ applicationId: 'com.simovinci.bagnoadriatico', hostName: 'www.bagnoadriatico.it', // The domain being opened in the TWA. launchUrl: '/mobile', //

Flutter build error for the first time :Could not open settings remapped class cache for 7yvt6la2007dno98lt3rzbguf

亡梦爱人 提交于 2020-08-08 05:47:28
问题 I just downloaded flutter and try to learn emulator with the first default code which google offered. But it does not run at all! I plug in dart and flutter. I also changed the order of jcenter() and google() too like this: buildscript { ext.kotlin_version = '1.3.50' repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { jcenter() google() } } And

Flutter build error for the first time :Could not open settings remapped class cache for 7yvt6la2007dno98lt3rzbguf

不羁的心 提交于 2020-08-08 05:45:59
问题 I just downloaded flutter and try to learn emulator with the first default code which google offered. But it does not run at all! I plug in dart and flutter. I also changed the order of jcenter() and google() too like this: buildscript { ext.kotlin_version = '1.3.50' repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { jcenter() google() } } And

Spring boot and Gradle multi-modules project, failed to load dependencies correctly

依然范特西╮ 提交于 2020-08-08 05:27:21
问题 Basically I have a spring boot project build with Gradle. The project has a root project that contains another 4 sub-modules. The root project settings.gradle looks like this: rootProject.name = 'proj' include 'proj-app' include 'proj-integration-tests' include 'proj-model' include 'proj-service' The app module contains the spring-boot-gradle-plugin and exposes some api's. What I wanted to do was to create proj-integration-tests sub-module that only contain the integration tests. The problem

Android注入框架ButterKnife使用解析

给你一囗甜甜゛ 提交于 2020-08-07 16:33:44
Android开发中使用注入框架,可减少findViewById的代码量,也能让我们的代码更加整洁,有许多著名的注入框架比如,ButterKnife,Annotation,XUtils,afinal等,最开始接触的是XUtils,后面开始接触到了ButterKnife; XUtils包含了许多模块,比如数据库操作orm,网络请求,图片及视图注入,而如果仅需要做视图注入的话BK更合适些。 今天来看看ButterKnife的使用。 文章目录 1.添加依赖 2.使用 使用@BindView取代findViewById @OnClick点击事件 资源绑定 列表Adapter的ViewHolder 1.添加依赖 在项目的app/build.gradle文件中,添加如下代码 android { ... // Butterknife requires Java 8. compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation 'com.jakewharton:butterknife:10.2.2' annotationProcessor 'com.jakewharton

Android Kotlin/java集成arouter产生的问题及解决

蹲街弑〆低调 提交于 2020-08-07 16:33:01
前言 一般解决不同模块中的Activity跳转需要相互依赖,如此将产生严重的耦合,失去了划分module的意义。 可以自己根据需要设计跳转router,也可以直接使用arouter第三方依赖实现,在实现过程中会产生较多的问题,本文将给出基本步骤及解决办法。 1.kotlin配置基础步骤 以下步骤主要以Kotlin语言环境为基础。首先在项目app或其他命名的模块下的build.gradle中添加以下内容 apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' kapt { arguments { arg("AROUTER_MODULE_NAME", project.getName()) } } dependencies { api 'com.alibaba:arouter-api:1.5.0' kapt 'com.alibaba:arouter-compiler:1.2.2' } 这是其他博客中描述的通用配置,但是这样做会出现一个错误: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'kotlin-kapt'] org.gradle.api.GradleException:

SpringBoot中基于Pact的契约测试

萝らか妹 提交于 2020-08-07 11:21:25
背景 如今,契约测试已经逐渐成为测试圈中一个炙手可热的话题,特别是在微服务大行其道的行业背景下,越来越多的团队开始关注服务之间的契约及其契约测试。 什么是契约测试 关于什么是契约测试这个问题,首先先看一下Pact官方文档给出的定义:pact的官方文档,是另一个可以帮助我们理解契约测试的地方。它对契约测试给出了这样的定义: " Contract testing is a way to ensure that services (such as an API provider and a client) can communicate with each other"。 这里面需要关注的重点是 "communicate " , 它给出了Pact对契约测试范畴(scope)的定义 。 契约测试又称之为 消费者驱动的契约测试。这里的契约是指软件系统中各个服务间交互的数据标准格式,更多的指消费端(client)和提供端(server)之间交互的数据接口的格式。 契约测试的价值 那什么是契约测试的价值呢?要说清楚契约测试的价值,就需要准确认识契约测试的精髓——"消费者驱动" 在讨论契约测试的范畴里,”消费者驱动”述及的对象是契约,而不是契约测试。所以谁被驱动的对象就是契约。举个例子,当某个provider正常上线后,某个consumer需要消费这个provider的服务

Suddenly getting Firebase java.lang.IllegalAccessError at startup of app

安稳与你 提交于 2020-08-07 04:05:33
问题 suddenly a crash occurs at initial startup of app after installation ! But just the first time...after second opening of app it works properly. I have not changes the firebase code but maybe the dependency...but to the latest version...so normally it should be a stable one! It seems to have some problem related to firebase: java.lang.IllegalAccessError: Illegal class access: 'com.google.firebase.messaging.zze' attempting to access 'com.google.firebase.iid.zzat' (declaration of 'com.google

Flutter第一个应用--踩坑之路

爱⌒轻易说出口 提交于 2020-08-06 23:56:34
Flutter第一个应用--踩坑之路 安装 参照官网教程( 这里 )下载解压,以及设置环境变量即可。 如果你是中国用户 (当然了,我们都是),参考这篇文章 Using Flutter in China ,设置一下中国的镜像。 比如我用的是zsh,那我的设置如下: export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn 然后使用 flutter doctor 检查一下环境,我的如下: 我的 android studio 是绿勾勾,是因为我已经安装过Flutter插件了 注意上图我红色箭头标注的地方 ,如果你的没有通过检查,按照doctor的提示输入命令f lutter doctor --android-licenses ,然后一路Y就行。 创建项目 安装官网的 这篇文章 使用AS创建项目,但是你会发现,卡在下面这个页面很久 google了很久,得到一个答案,很暴力。 先打开项目文件夹,看是否已经成功创建了文件。(基本都是已经创建了的) 然后强制杀死as 然后重新启动as,打开已存在的项目 但是,按照as的提示Get dependencies时,报 Waiting for another flutter command to