gradle

【软通动力】HarmonyOS三方件开发指南(1)-PrecentPositionLayout

旧巷老猫 提交于 2021-01-07 10:48:21
目录: 1. Prece ntPositionLayout功能介绍 2. PrecentPositionLayout使用方法 3. PrecentPositionLayout开发实现 1. PrecentPositionLayout功能介绍 1.1. 组件介绍: SDK提供了不同布局规范的组件容器,例如以单一方向排列的DirectionalLayout、以相对位置排列的DependentLayout、以确切位置排列的PositionLayout等。 其中PositionLayout中组件的位置是以绝对像素点定义的,无法实现根据屏幕的大小自适应。因此,引入一种以百分比方式定义的PrecentPositionLayout布局容器,通过它可以很方便的实现屏幕自适应。 1.2. 手机模拟器上运行效果: 2. PrecentPositionLayout使用方法 2.1. 新建工程,增加组件Har包依赖 在应用模块中调用HAR,只需要将precentpositionlayout.har复制到entry\libs目录下即可(由于build.gradle中已经依赖libs目录下的*.har,因此不需要再做修改)。 2.2. 修改主页面的布局文件 修改主页面的布局文件ability_main.xml,将跟组件容器修改为com.isoftstone.precentpositionlayout

Activity_main.xml not showing and Gradle doesn't finish initial build

℡╲_俬逩灬. 提交于 2021-01-07 03:11:58
问题 Hi im kinda new to android studio and im trying to learn from tutorials on youtube but i cant seem to do it because the activity_main.xml is not opening up and stuck at waiting for build to finish... ive been waiting for like an hour now and not certain what to do i also tried reinstalling it but nothing happened and stuck at this: 回答1: Android Studio preview needs at least one success build in order to show the Preview. Go to Build -> Rebuild project then check if there is any issues then

Activity_main.xml not showing and Gradle doesn't finish initial build

╄→гoц情女王★ 提交于 2021-01-07 03:11:51
问题 Hi im kinda new to android studio and im trying to learn from tutorials on youtube but i cant seem to do it because the activity_main.xml is not opening up and stuck at waiting for build to finish... ive been waiting for like an hour now and not certain what to do i also tried reinstalling it but nothing happened and stuck at this: 回答1: Android Studio preview needs at least one success build in order to show the Preview. Go to Build -> Rebuild project then check if there is any issues then

flutter build apk fails - Could not determine the dependencies of task ':app:processDebugResources'

蹲街弑〆低调 提交于 2021-01-07 02:44:40
问题 here is the complete output : I tried switching to stable channel and ran these commands already. flutter channel stable flutter upgrade flutter run Even on stable channel the error doesn't go ! C:\Users\Rudr\Documents\GitHub\Flutter-Facial-Attendance-App\facatte>flutter run Launching lib\main.dart on SM M315F in debug mode... Plugin project :firebase_core_web not found. Please update settings.gradle. FAILURE: Build failed with an exception. * What went wrong: Could not determine the

flutter build apk fails - Could not determine the dependencies of task ':app:processDebugResources'

前提是你 提交于 2021-01-07 02:41:20
问题 here is the complete output : I tried switching to stable channel and ran these commands already. flutter channel stable flutter upgrade flutter run Even on stable channel the error doesn't go ! C:\Users\Rudr\Documents\GitHub\Flutter-Facial-Attendance-App\facatte>flutter run Launching lib\main.dart on SM M315F in debug mode... Plugin project :firebase_core_web not found. Please update settings.gradle. FAILURE: Build failed with an exception. * What went wrong: Could not determine the

How to deploy on Heroku a Gradle Spring Boot app, with dependency on a local Library project?

穿精又带淫゛_ 提交于 2021-01-07 02:16:53
问题 Let's say I have a Gradle Multi project with 2 subprojects, :profile and :commons . :commons is a Library project, and :profile is a Spring Boot app, with details below: # profile/build.gradle ... dependencies { implementation project(':commons') ... } ... And # profile/settings.gradle rootProject.name = 'profile' include ":commons" project(':commons').projectDir = new File('../commons') Obviously, when I push to Heroku I have the error below: FAILURE: Build failed with an exception. remote:

ShortcutBadgerDemo【安卓应用角标(badge)实现方案】

◇◆丶佛笑我妖孽 提交于 2021-01-07 00:57:25
版权声明:本文为 HaiyuKing 原创文章,转载请注明出处! 概述 本文主要使用的开源库是 leolin310148/ShortcutBadger ,但是在其基础上做了一些修改。 什么是应用角标? 1、角标,英文名badge,即桌面上显示未读消息的小数字,原ios功能,Android原生并没有该功能。(原生的Android系统,是不支持应用角标的) 应用角标最开始是在ios系统中出现的,大概长这样: 不知道从什么时候开始,国内各大安卓手机系统上,也慢慢出现了应用角标的身影,到现在几乎成为了安卓系统的标配。 2、目前被大部分android厂商所支持,但都是厂商自己支持,所以要考虑不同品牌的兼容问题。 3、应用角标是一个带有争议的设计,有些强迫症用户对应用角标咬牙切齿,有些用户看不到应用角标又浑身痒痒。 如何支持应用角标? 1、安卓应用的角标是由Launcher支持的,而原生的Android系统Launcher并没有提供角标支持,所以各大手机厂商只能自己定制Launcher来实现,然后提供接口给外部使用。 2、主流的做法都是通过广播Intent的形式来提供接口,不同的手机系统所支持的广播Intent也不太一样,所以需要针对不同的手机系统来做适配(恭喜你又成功跳入一个系统适配的坑!)。 3、添加角标的原理就是发送一个Broadcast(广播)

58无埋点数据采集技术在Android端实践

六眼飞鱼酱① 提交于 2021-01-06 18:14:55
本文转载自公众号 58架构师 ,已经作者授权! 作为国内最大分类信息生活服务平台,58集团旗下各个产品都会投入大量人力进行用户行为的分析,来提升运营效率。但是各个产品对用户行为的分析需求基本是相似的。在这样的背景下,我们自研了WMDA 无埋点用户行为分析平台,并提供对PC、M、APP三端支持,帮助各个业务线更好的挖掘用户真实行为。 对于SDK的使用,业务方不需要手动埋点,几行代码,即可实现数据的全量采集。对于移动端SDK来说,采集数据的准确性、及时性、全面性等因素直接决定后续用户行为的分析。本文将从技术选型、技术实现方案角度详细介绍Android端无埋点数据采集技术。 一、技术选型 首先,技术是为需求提供服务的,WMDA的定位是采用无埋点技术来实现用户行为的分析。同时辅助解决手动埋点不易维护,容易出现错埋、漏埋等痛点问题。所以SDK在采集用户行为数据的同时,对开发效率、采集性能、准确性、实时性等有很高的要求,而且需要支持数据的可回溯。 通过对市面上现有埋点技术调研,目前技术方案上大体分为三类: 传统代码埋点 实现方案:Coding阶段手动埋点。 代表解决方案:友盟、百度统计。 优点:灵活、准确,可以定制化。 缺点:业务埋点量非常大,开发成本高,不易维护,如果要修改、新增埋点,需要重新发版。 动态埋点 实现方案:利用AccessibilityDelegate对每个view实例设置代理

android教你怎么轻松实现手机推送功能,一步一步教你Mob+MobPush实现推送功能?

主宰稳场 提交于 2021-01-06 09:43:08
mob平台实现推送功能 第一步:Mob平台账号 第二步:在mob平台配置MobPush环境 1.点击下图蓝色圆圈处的产品中心。 2.点击立即进入。 3.点击创建应用。 4.同意隐私服务。 5.创建应用 6.点击下图红色圆圈接入接口。 7.选择`MobPush` 8.获取你的`App Key`和`App Secret`。 9.点击SDK下载。 10.下载MobPush 第三步:把MobPush的代码添加到android项目 1.新建一个Project或者Module(`记住你的包名,下面会用到(重点)`)。 2.在你的build.gradle(Project)里面加入如下代码 3.在你的build.gradle(Module)加入如下代码 第四步:推送配置 1.点击推送设置 2.新增包名:记得和你`新建Project或者Modue的包名一样` 3.把你新建的包名设置为默认包 4.运行你的项目 第五步:实现推送功能 1.点击创建推送 2.填一下推送信息 3.推送成功 建议仔细观看每一个步骤,如果一个步骤没处理好,可能就会让你的这个功能无法实现。相信我一定可以成功的。 第一步:Mob平台账号 因为我已经注册了mob平台了,也没有多余的手机号,就不详细说明了,注册还是比较简单的。下面附上mob平台的链接: mob平台链接 :https://www.mob.com/ 第二步

Why does the host specified in network_security_config.xml get merged into the AppLinks section of the Android manifest by the build process?

余生颓废 提交于 2021-01-05 08:58:19
问题 Following on from this question where I had a real issue with AppLinks. The problem was eventually narrowed down to the fact that the build process was dragging the host from the network_security_config.xml into the merged manfest file section specifying the AppLinks. This unexpected host that I used for testing wasn't hosting an assetlinks.json specifying the correct signatures. Details of the answer can be found here. So, why does the build process turn this <intent-filter android