gradle

The APK File xxxx.apk Does Not Exist on Disk问题修复

痞子三分冷 提交于 2020-04-12 17:15:42
许久之前,用Espresso写过一些测试用例,但是执行的时候总是报这种错误 1 2 The APK file aaa-debug-4.2.8-886eda0d9d-400208.apk does not exist on disk. Error while Installing APK 解决方法 执行 File -> Sync Project with Gradle Files 即可。 来源: oschina 链接: https://my.oschina.net/u/4331670/blog/3231024

修复Gradle因代理设置导致的超时问题

拟墨画扇 提交于 2020-04-12 17:08:53
之前在项目中增加了一个项目依赖,可是配置的时候,怎么也无法下载下来。中终端执行gradle得到的错误日志如下 1 2 3 org . gradle . internal . resource . transport . http . HttpRequestException : Could not HEAD ' https: //jcenter.bintray.com/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1-sources.jar'. at org . gradle . internal . resource . transport . http . HttpClientHelper . performRequest ( HttpClientHelper . java : 96 ) at org . gradle . internal . resource . transport . http . HttpClientHelper . performRawHead ( HttpClientHelper . java : 72 ) 怀疑是网络的问题,先后开启了***工具都无法下载。后来摸索了一段时间,才发现了问题的所在。我在gradle.properties的代理错误设置有问题 1 2 3 4 5 6 7

How to create common gradle project used by other projects

坚强是说给别人听的谎言 提交于 2020-04-12 07:27:10
问题 I have a gradle project that consist of 3 parts: client, common and service. There are some classes that are used both in client project and service project, therefore I wanted to create a common module and build a jar from it and then import it in other two projects as a library. I put shared classes in common module, I didnt create the main class because I want to project to only provide other classes, so it looks like this: Then I tried to import it in other project as a library and build

独立代码扫描,镜像自动化构建,敏捷项目管理 -- 百度效率云7月改版一览

跟風遠走 提交于 2020-04-12 02:51:26
本文作者:francisk84 距离百度效率云正式发布已经2个多月,在这两个月的时间里,百度效率云又更新了一系列大的功能模块,借这次机会,正式向大家汇报一下百度效率云近期的产品迭代成果: 百度效率云入口 近期产品的重大更新: 1. 完善项目权限模型,项目间权限隔离 2. 代码扫描增加独立入口,不挂载流水线也可使用 3. 增加Docker镜像构建,镜像仓库 下面我就来为大家介绍一下以上几个升级点: 完善项目权限模型,项目间权限隔离: 在百度内部,项目空间、代码库和流水线是三套彼此独立的权限系统,用户可以同时拥有不同的项目和代码库的权限。 内部效率云的权限模型 但是,在服务外部客户的时候,尤其是和不同企业都有项目合作的业务形态下,客户需要一种更加集中式的权限管理,用以区分人员,代码库和信息的权限。引用开源界那本著名的书籍名称,我们把这两种权限模型称之为--"集市和大教堂" 集市与大教堂 因此我们重新梳理了权限模型,建立了以项目为授权基准,产品需求,代码库,流水线都包裹在项目内部。这样实现了项目间信息的隔离。现在用户进入到效率云的首页,首先看到的是有权限的项目列表,进入到项目内部,才能看到具体的功能组件 用户登录后首页 进入到项目后,才能看到具体的功能组件: 项目功能组件 项目的创建者可以在左下角的项目设置-->权限设置页面里对用户进行授权和添加,目前项目权限分为三种: 管理员:

独立代码扫描,镜像自动化构建,敏捷项目管理 -- 百度效率云7月改版一览

拜拜、爱过 提交于 2020-04-12 02:38:40
本文作者:francisk84 距离百度效率云正式发布已经2个多月,在这两个月的时间里,百度效率云又更新了一系列大的功能模块,借这次机会,正式向大家汇报一下百度效率云近期的产品迭代成果: 百度效率云入口 近期产品的重大更新: 1. 完善项目权限模型,项目间权限隔离 2. 代码扫描增加独立入口,不挂载流水线也可使用 3. 增加Docker镜像构建,镜像仓库 下面我就来为大家介绍一下以上几个升级点: 完善项目权限模型,项目间权限隔离: 在百度内部,项目空间、代码库和流水线是三套彼此独立的权限系统,用户可以同时拥有不同的项目和代码库的权限。 内部效率云的权限模型 但是,在服务外部客户的时候,尤其是和不同企业都有项目合作的业务形态下,客户需要一种更加集中式的权限管理,用以区分人员,代码库和信息的权限。引用开源界那本著名的书籍名称,我们把这两种权限模型称之为--"集市和大教堂" 集市与大教堂 因此我们重新梳理了权限模型,建立了以项目为授权基准,产品需求,代码库,流水线都包裹在项目内部。这样实现了项目间信息的隔离。现在用户进入到效率云的首页,首先看到的是有权限的项目列表,进入到项目内部,才能看到具体的功能组件 用户登录后首页 进入到项目后,才能看到具体的功能组件: 项目功能组件 项目的创建者可以在左下角的项目设置-->权限设置页面里对用户进行授权和添加,目前项目权限分为三种: 管理员:

Android Studio ML kit cannot load OCR module

北城以北 提交于 2020-04-11 07:48:08
问题 I am working on an android app that involves ML kit. I went through the tutorial on how to set up Android Studio to work with Firebase. Then I headed to use the text recognition API. Here is the code that I am having in some button click listener: FirebaseVisionTextRecognizer detector = FirebaseVision.getInstance() .getOnDeviceTextRecognizer(); Task<FirebaseVisionText> result = detector.processImage( FirebaseVisionImage.fromBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.test))

Gradle copy task not copying files from temp folder first time around

一笑奈何 提交于 2020-04-11 06:50:09
问题 I've a build file that runs tasks like this. Task 1 ( unpackWar ) : Unzips war file to Temp folder Task 2 ( copyWarFilesToWebContent ) : Copies the files to WebContent folder with some exclusions Task 3 ( copyRequiredJarFilesToWebContent ) : Unzips a couple of jar files from Temp/WEB-INF/lib to TempJarDir Task 4 ( explodeProductJars ) : Copies files we want from TempJarDir to WebContent folder There is a single prepare task that runs each of these tasks using dependsOn and I've added

Caching the Gradle wrapper in AWS CodeBuild

一个人想着一个人 提交于 2020-04-11 06:04:14
问题 This is what my current buildspec looks like: phases: build: commands: - ./gradlew soakTest -s cache: paths: - '/root/.gradle/caches/**/*' - '.gradle/**/*' But when this buildspec runs in CodeBuild, it prints messages that it is downloading gradle 4.7. It appears that other things are being cached correctly - I don't see log messages about downloading jar dependencies, for example. What should the buildspec cache specifications look like, in order to make sure the Gradle version that the

Why does my jar file not not contain any class files?

旧街凉风 提交于 2020-04-11 04:35:49
问题 I'm trying to add a task ( gen or gen2 ) to my build.gradle that does exactly the same as the Jar -task: version = "0.0.1" apply plugin: 'java' task('gen', type: Jar) { } task gen2(type: Jar) Running gradle jar generates a JAR-file that contains .class -files, while running gradle gen or gradle gen2 generate a JAR-file that does NOT contain any .class -files. Whats wrong with my class definition? 回答1: To build a jar with all the classes from main, as a default jar task would, do this: task

Android Studio 编译报错:download fastutil-7.2.0.jar

孤街醉人 提交于 2020-04-10 11:20:30
引用: https://www.cnblogs.com/caoxinyu/p/10568462.html build.gradle 可能有多个,一般在app 节点,默认里面不包含 buildscript, allprojects 这两项。 把这段代码加入 build.gradle (Moudle:app) 尾部: buildscript { repositories { maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" } google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" } google() jcenter() } } 来源: oschina 链接: