gradle

Android uni-app 封装原生插件

巧了我就是萌 提交于 2020-12-17 13:30:20
前言 据广大用户的需求,需要把我们anyRTC的SDK,封装到uni-app来使用,并且实现音视频通话。这边文章图文讲解一下怎么封装原生插件,并且在下一章uni-app实现音视频通话。 anyRTC开发者中心 1.uni-app是什么? 一个使用Vue.js开发所有前端应用框架,开发者编写一套代码,可发布到ios、Android、H5、以及各种小程序(微信/支付宝/百度/头条/QQ/钉钉)等多个平台。 如果你还没有了解uni-app是什么: 点击这里:这篇文章举例说明。 2.uni-app的特点 1、跨平台更多 真正做到“一套代码、多端发行”! 条件编译:优雅的在一个项目里调用不同平台的特色功能! 2、运行体验好 组件、api与微信小程序一致 兼容weex原生渲染 3、通过技术栈,学习成本低 vue的语法、微信小程序的api 内嵌mpvue 4、开放生态,组件更丰富 5、支持通过npm安装第三方包 6、支持微信小程序自定义组件及SDK 7、兼容mpvue组件及项目 8、App端支持和原生混合编码 9、DCloud将发布插件市场 3.uni-app封装原生插件 3.1 Android离线SDK下载: 点击下载 ,两个SDK均可。 下载完成,解压备用: 3.2 新建Android项目 打开Android Studio,建立一个No Activity项目。在菜单栏选择 File>New

Andriod Gradle issue

五迷三道 提交于 2020-12-15 07:06:53
问题 I imported an application in Andriod studio(the newest andriod studio version), and I tried everything like: uninstall and install the JDK again, re-apply for each library, updating the SDK manager, the code is before 5-6 years ago, so now im trying to update the Gradle and I couldn't fix this issue. build.gradle(modules:app) apply plugin: 'com.android.application' android { compileSdkVersion 16 buildToolsVersion "29.0.2" defaultConfig { applicationId "com.App" minSdkVersion 11

Andriod Gradle issue

僤鯓⒐⒋嵵緔 提交于 2020-12-15 07:03:09
问题 I imported an application in Andriod studio(the newest andriod studio version), and I tried everything like: uninstall and install the JDK again, re-apply for each library, updating the SDK manager, the code is before 5-6 years ago, so now im trying to update the Gradle and I couldn't fix this issue. build.gradle(modules:app) apply plugin: 'com.android.application' android { compileSdkVersion 16 buildToolsVersion "29.0.2" defaultConfig { applicationId "com.App" minSdkVersion 11

How to set a property of a task lazily?

痞子三分冷 提交于 2020-12-15 05:22:56
问题 task task1(type: ProduceFilesTaskType) { outDir = file("$projectDir/some/files") } task task2(type: ConsumeFilesTaskType) { fileList = file("$doSomething.outDir/somefolders/").listFiles().toList() // null pointer exception } I don't have the source of ConsumeFilesTaskType and it requires a List<File> fileList which is produced by task1 . Now because these files don't exist in configuration phase, gradle fails at configuration stage with error Cannot invoke method toList() on null object

How to set a property of a task lazily?

蓝咒 提交于 2020-12-15 05:21:10
问题 task task1(type: ProduceFilesTaskType) { outDir = file("$projectDir/some/files") } task task2(type: ConsumeFilesTaskType) { fileList = file("$doSomething.outDir/somefolders/").listFiles().toList() // null pointer exception } I don't have the source of ConsumeFilesTaskType and it requires a List<File> fileList which is produced by task1 . Now because these files don't exist in configuration phase, gradle fails at configuration stage with error Cannot invoke method toList() on null object

Checker Framework argument.type.incompatible false positive with commons-lang3

给你一囗甜甜゛ 提交于 2020-12-15 03:43:00
问题 Here's my error (and yes there is an open bug on commons-lang3 jira). found : @Initialized @Nullable Console required: @Initialized @NonNull Console /Users/calebcushing/IdeaProjects/ppm/scaf/src/main/java/com/xenoterracide/scaf/PebbleTemplateProcessor.java:96: error: [argument.type.incompatible] incompatible argument for parameter str of toBoolean. if ( BooleanUtils.toBoolean( line ) ) { I tried making this src/java/main/org/apache/commons/lang3/BooleanUtils.astub and I tried putting that

Flutter ClassNotFoundException (java.lang.RuntimeException) crash error

心已入冬 提交于 2020-12-15 02:57:46
问题 Recently, I uploaded my Flutter app to Play Store. My app crashed after installing and opening the app. I've got several Crash Reports. I did researched everywhere about this error and found nothing, I even contacted Google Play's Support. I am using Firebase Auth, cloud_firestore, google_sign_in... (check pubspec.yamll) Help will be appreciated Flutter Doctor: Active code page: 1252 Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.17.3, on Active

Flutter ClassNotFoundException (java.lang.RuntimeException) crash error

给你一囗甜甜゛ 提交于 2020-12-15 02:55:08
问题 Recently, I uploaded my Flutter app to Play Store. My app crashed after installing and opening the app. I've got several Crash Reports. I did researched everywhere about this error and found nothing, I even contacted Google Play's Support. I am using Firebase Auth, cloud_firestore, google_sign_in... (check pubspec.yamll) Help will be appreciated Flutter Doctor: Active code page: 1252 Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.17.3, on Active

JVM 运行时数据区详解,写得非常好!

ⅰ亾dé卋堺 提交于 2020-12-13 12:59:30
Java技术栈 www.javastack.cn 关注阅读更多优质文章 作者:小小木的博客 www.cnblogs.com/wyc1994666/p/11795781.html 在接下来的几天想总结下,JVM相关的一些内容,比如下面的这三个内容算是比较核心知识点了 1. 运行时数据区域: 在运行时数据区里存储类Class文件元数据(方法区),对象和数组(堆),方法参数局部变量(栈)等。 2. 垃圾回收机制: java 语言的优势之一就是它的自动内存管理,主要回收运行时数据区域的堆内存里的数据 3. 类加载机制: 虚拟机首先需要把编译完成的字节码文件通过类加载器来加载到运行时数据区域 一个段Java代码的生命周期都会少不了上图这几个步骤,也就是Java代码首先会被编译成字节码文件,之后被类加载器加载到运行时数据区域,以及运行,垃圾收集器回收对象等等。 但今天我想介绍第一个知识点《运行时数据区域》 1 运行时数据区 Java虚拟机定义了一系列逻辑数据区域,有些是随着虚拟机的启动而创建,虚拟机的关闭而销毁。还有一部分是随着线程生命周期创建销毁的。 我们有必要深入了解这块的内容,因为它将决定服务器性能,首先我们需要对整个运行时区域由整体的认识并且了解了每个区域的生命周期以及作用之后才能通过相应的调参来提升系统性能。除此之外还有助于快速定位虚拟机的相关Error.

Android Studio 3.0版本出Jar包或出混淆Jar包

谁说我不能喝 提交于 2020-12-13 10:40:31
Android Studio 各个版本出jar包的命令都不一样,所以这里记录一下Android Studio 3.0版本出包的两种方法: 方法一(简单):整个工程全部出jar包 1.首先在需要出jar包的module项目下找到 build.gradle文件,在最下面直接添加task任务: //AS 3.0 编译出build/intermediates/bundles/release/下的classes.jar包,并且完成出jar包 //dependsOn 就是代替手动去点击右侧gradle/对应module/other/transformClassesAndResourcesWithSyncLibJarsForRelease命令 task makeJar(type: Copy, dependsOn: ['transformClassesAndResourcesWithSyncLibJarsForRelease']) { from('build/intermediates/bundles/release/')//classes.jar 文件位置(AS版本不同位置不同) into('build/libs/jar/')//新jar包保存的位置,可根据自己需求修改 exclude('**/BuildConfig.class') //exclude 命令就是新jar包需要删除的类或文件