gradle

【js】React-Native 初始化时报错

孤人 提交于 2021-01-30 15:32:59
一、按照官网的步骤一步一步的操作,到最后 react-native init AwesomeProject 时就是报错 报错信息如下图 然后我下载了这个模块 npm install prompt -g 就可以了,希望能帮到你。如果下载出错,请切换终端到root模式 sudo su 二、初始化文件后,react-native run-android 时报错。如下: 我这边提示时不能写如文件 Cannot create directory 这个情况可能时需要开启root权限。 三、不能链接到模拟器(我这边时先用sndriod studio 生成了一个文件,并且打开模拟器。然后在执行这个语句,发现模拟器可以运行这个app了) 发现提前打开一下android的模拟器,就可以了。不知道是我环境配的有问题,换是哪里原本就是这么操作的。 四、在打包为apk的时候也会遇到好多问题, cd android && ./gradlew assembleRelease 执行后总是报错, 1. 可能网速不好下载时间过长了,多执行几次,后面就好了。 2. 密钥不对,需要修改gradle.properties的值。或者重新在生产一个my-release-key.keystore .   3. 生成my-release-key.keystore需要执行命令 $ keytool -genkey -v

IDEA + Gradle + Lombok 错误:找不到符号

限于喜欢 提交于 2021-01-30 13:38:33
开发时正常,打包时提示 错误:找不到符号 ,是找不到get/set方法。 版本 IDEA:2019.3 Gradle:6.7.1 Lombok:1.18.16 解决过程 尝试1:升级了Lombok插件,无果 核实Enable annotation processing已勾选 File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors 核实Use complier为Javac File -> Settings -> Build, Execution, Deployment -> Java Compiler 修改build.gradle依赖,解决! // 需要配置下面两条 compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.16' annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.16' 来源: oschina 链接: https://my.oschina.net/u/3251146/blog/4938478

Flutter中极光推送的使用----jpush_flutter

≡放荡痞女 提交于 2021-01-30 08:11:53
原文地址:https://www.cnblogs.com/niceyoo/p/11095994.html 1、申请极光账号和建立应用 极光推送的官方网址为:https://www.jiguang.cn/ 注册好后,进入'服务中心',然后再进入'开发者平台',点击创建应用。 这时候会出现新页面,让你填写“应用名称”和上传“应用图标”。 创建完成,极光平台就会给我们两个key。 appKey : 移动客户端使用的key Master Secret : 服务端使用的key 我们这里只做移动端不做服务端,所以只需要appKey。得到这个Key也算是极光平台操作完了 2、加入dependencies依赖 github网址:https://github.com/jpush/jpush-flutter-plugin 要使用极光推送插件必须先下载包,要下载包就需要先添加依赖,直接把下面的代码加入pubspec.yaml文件中。 jpush_flutter: 0 .0 .11 写完代码后,选择Android Studio右上角的Packages get进行下载,下载完成后进行操作。 3、build.gradle添加可以和cpu型号代码 打开android/app/src/build.gradle文件,加入如下代码: defaultConfig { applicationId "sscai.club

How do I install Rundeck from source (i.e., the github repo)?

自古美人都是妖i 提交于 2021-01-29 20:12:26
问题 I am trying to install Rundeck from source. I have tried three different distributions of Linux (a Debian, Red Hat, and SUSE distribution). All have had failures. I install the make command, Java and Git before proceeding. The "make" command is what fails on every distribution of Linux that I have tried. The "./gradlew build" command was no more successful either. I then run these commands: cd /tmp git clone https://github.com/rundeck/rundeck.git mv rundeck /opt/ cd /opt/rundeck make I always

Gradle build using plugins and dependencies from “flatDir”

最后都变了- 提交于 2021-01-29 20:10:37
问题 How to make a gradle build if all the required jars to build the project (plugins+dependencies) are present in flatDir ? I have all the required jars in my D drive under "D:/path/to/local/directory". Now when I am trying to do a gradle build, it fails every time for different reasons. Need help in fixing the same (Gradle version 6.3). Code in my Build.gradle buildscript { repositories { // If you want to use a (flat) filesystem directory as a repository flatDir { dirs 'D:/path/to/local

Create Unit and Instrumentation test for Android project with dynamic features

喜你入骨 提交于 2021-01-29 19:47:42
问题 I have a project where I have main :app package. Besides that, the app contains of two dynamic features inside the same package, :features:A and :features:B. The issue here is that I can't run Unit and Instrumentation tests (Espresso, UI Automator) because of the following error(s): “AAPT: error: resource string/app_name (aka com.app.A.test:string/app_name) not found.” When I run tests(UI tests in this case) App compiles and works without any issues. I figured out that error occurs on

How to force gradle to add dependencies to the module path instead of the class path in eclipse?

送分小仙女□ 提交于 2021-01-29 19:23:03
问题 I have a gradle javafx library which build.gradle lokks like this : plugins { id 'java-library' id 'java-library-distribution' id 'org.openjfx.javafxplugin' version '0.0.8' } repositories { mavenCentral() jcenter() } jar { archiveName = 'streampi-fx' } distributions { main { distributionBaseName = 'streampi-fx' contents { from 'src/main' } } } javafx { version = "14" modules = [ "javafx.controls", "javafx.fxml" ] } with a module-info requiring javafx : module fr.streampi.fx { exports fr

How to add other projects in current project in Gradle?

烂漫一生 提交于 2021-01-29 17:57:00
问题 I have two projects ProjA and ProjB, here ProjB is depends on ProjA. So, how to include ProjA in ProjB? And please let me know in case change in the ProjA build.gradle file? 回答1: Okay, so you have two projects, whereas ProjA depends on ProjB. If you have already set up a gradle build for those, both of them will have a file settings.gradle, which at least defines the project name and build.gradle, where you can specify the dependencies. Example: settings.gradle rootProject.name = 'ProjA'

Android Studio 第一次新建Android Gradle项目超级慢的解决方案

不问归期 提交于 2021-01-29 15:48:20
Android Studio 第一次新建Android Gradle项目超级慢的解决方案 参考文章: (1)Android Studio 第一次新建Android Gradle项目超级慢的解决方案 (2)https://www.cnblogs.com/leo-lsw/p/gradle-first-created-error.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/u/4437884/blog/4933874

How can I force a specific dependency to use specific version of a library in gradle

て烟熏妆下的殇ゞ 提交于 2021-01-29 13:32:03
问题 I have a dependency 'com.liferay.mobile:liferay-screens:2.1.4' and I want to force it for example to use 'com.android.support:support-v4:28.0.0' . How can I do this force only for liferay-screens dependency in gradle? I've done it like below but it takes error: ERROR: Could not find method com.liferay.mobile:liferay-screens:2.1.4() for arguments [build_e4u81lzxji4bi1lau20a1sng2$_run_closure3$_closure7@2be4e1d1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies