cnpm i macaca-android -g

还有错误,“License for package Android SDK Platform 26 not accepted.”,请教什么原因?

log如下:

D:\workspace\eWork\mobile>cnpm i macaca-android -g

Downloading macaca-android to C:\Users\syq\AppData\Roaming\npm\node_modules\macaca-android_tmp

Copying C:\Users\syq\AppData\Roaming\npm\node_modules\macaca-android_tmp_macaca-android@2.0.47@macaca-android to C:\Users\syq\AppData\Roaming\npm\node_modules\macaca-android

Installing macaca-android's dependencies to C:\Users\syq\AppData\Roaming\npm\node_modules\macaca-android/node_modules

[1/10] webdriver-dfn-error-code@~1.0.1 installed at node_modules_webdriver-dfn-error-code@1.0.4@webdriver-dfn-error-code

[2/10] driver-base@~0.1.0 installed at node_modules_driver-base@0.1.4@driver-base

[3/10] temp@~0.8.3 installed at node_modules_temp@0.8.3@temp

[4/10] xml2map@^1.0.2 installed at node_modules_xml2map@1.0.2@xml2map

[5/10] macaca-adb@~1.0.3 installed at node_modules_macaca-adb@1.0.33@macaca-adb

[6/10] xlogger@~1.0.0 installed at node_modules_xlogger@1.0.6@xlogger

[7/10] unlock-apk@~1.0.3 installed at node_modules_unlock-apk@1.0.8@unlock-apk

[8/10] uiautomatorwd@~1.0.45 installed at node_modules_uiautomatorwd@1.0.50@uiautomatorwd

[9/10] macaca-utils@^1.0.0 installed at node_modules_macaca-utils@1.0.1@macaca-utils

[10/10] macaca-chromedriver@~1.0.1 installed at node_modules_macaca-chromedriver@1.0.41@macaca-chromedriver

execute post install 3 scripts...

[1/3] scripts.install unlock-apk@~1.0.3 run "node ./script/build.js"

(node:7356) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ,

Configure project :app

Checking the license for package Android SDK Platform 26 in C:\Android\android-sdk\licenses

Warning: License for package Android SDK Platform 26 not accepted.

BUILD FAILED in 2s

,

FAILURE: Build failed with an exception.

What went wrong:

A problem occurred configuring project ':app'.

You have not accepted the license agreements of the following SDK components:

[Android SDK Platform 26].

Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.

Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

(node:7356) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

[1/3] scripts.install unlock-apk@~1.0.3 finished in 3s

[2/3] scripts.install uiautomatorwd@~1.0.45 run "node ./scripts/build.js"

(node:15004) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ,

Configure project :app

Checking the license for package Android SDK Platform 26 in C:\Android\android-sdk\licenses

Warning: License for package Android SDK Platform 26 not accepted.

BUILD FAILED in 2s

,

FAILURE: Build failed with an exception.

android test.apk,app-debug.apk和app-debug-androidTest.apk在安装macaca-android模块的时候build失败...相关推荐

  1. Android App 导出APK安装包以及制作App图标讲解及实战(图文解释 简单易懂)

    操作有问题请点赞关注收藏后评论区留言~~~ 一.导出APK安装包 之前在运行App的时候,都是先由数据线连接手机和电脑,再通过Android Studio的Run菜单把App安装到手机上,这种方式只能 ...

  2. Android插件化开发之用DexClassLoader加载未安装的APK资源文件来实现app切换背景皮肤

    第一步.先制做一个有我们需要的图片资源的APK 如下图,这里有个about_log.png,我们需要生成apk文件. 生成的apk文件如果你不到项目的文件夹里面去取apk,想通过命令放到手机里面去可以 ...

  3. android软件制作app下载地址,如何自己制作安卓apk软件?

    关于你的问题,我想你应该是不懂 Android 技术的,所以你只是想知道 apk 怎么来的吗? 如果只是想看看 apk 是怎么做出来的,你可以使用工具来完成,现在的Android 程序员也都是使用工具 ...

  4. android 裁剪 apk,Android 4.3 系统裁剪——删除不使用的app及增加自己app

    Android 4.3 系统裁剪--删除不使用的app及增加自己app 删除不使用的apk 系统自带的app位置是在/android4.3/packages/apps 下面是一些APP作用分析: | ...

  5. Android跳转到应用商店的APP详情页面,以及 Google GMS 各个apk的包

    需求: 从App内部点击按钮或链接,跳转到应用商店的某个APP的详情页面. 让用户 下载 或 评论. 实现: /*** 启动到应用商店app详情界面** @param appPkg 目标App的包名* ...

  6. Google提供的垃圾服务:Apk 签名服务 Google Play App Signing 介绍

    Google Play App Signing,中文称为 Google 应用签名. 是 Google Play 市场开发者管理后台为开发者提供的一项 Apk 签名服务,该服务是一个毫无疑问的垃圾服务, ...

  7. Android 之窗口小部件详解--App Widget

    1 App Widget简介 App Widget是应用程序窗口小部件(Widget)是微型的应用程序视图,它可以被嵌入到其它应用程序中(比如桌面)并接收周期性的更新.你可以通过一个App Widge ...

  8. 【Android 安装包优化】资源混淆 ( 资源混淆效果 | APK 构建流程简介 | 资源 ID 组成 )

    文章目录 一.资源混淆效果 二.APK 构建流程简介 三.资源 ID 组成 四.参考资料 一.资源混淆效果 资源混淆 , 将资源名称与目录进行混淆 , 提高了反编译的难度 , 同时也减小了 APK 文 ...

  9. 【Android 安全】DEX 加密 ( Java 工具开发 | 解压 apk 文件 | 加密生成 dex 文件 | 打包未签名 apk 文件 | 文件解压缩相关代码 )

    文章目录 一.解压 apk 文件 二.加密生成 dex 文件 三.打包未签名 apk 文件 四.完整代码示例 五.文件解压缩相关代码 六.执行结果 参考博客 : [Android 安全]DEX 加密 ...

最新文章

  1. Python 面向对象-如何查看类的父类,外部如何获取类的名字
  2. RepositionBars的用法和参数分析
  3. 无人化运维离我们有多远?阿里智能化运帷平台深度揭秘
  4. 初试Ajax.Net !
  5. 如何创建一个FeatureClass,IFeatureWorkspace 接口漫谈
  6. 数据挖掘之数理统计与常见分布与假设检验
  7. [Ext JS6] Grid 某些行不允许删除和选择的实现
  8. DSP之时钟与定时器之二通用定时器
  9. 【OpenCV学习笔记】【函数学习】一(MFC+OpenCV2.4.7读取摄像头之cvCaptureFromCAM()的索引问题
  10. 栈的基本操作(java)
  11. 关于海康相机ip地址无法更改问题
  12. 绿色自适应网址发布页html源码
  13. 【原】JUNIT 源码分析之TestSuite
  14. 论文阅读-A decade of social bot detection-Communications of the ACM, 2020(机器人检测的十年综述)
  15. javaswing,JAVA中国象棋网上对弈
  16. 浙江万里学院期末计算机网络,(浙江万里学院云计算基础课程大作业封面.doc
  17. 颜色模型HSB-这么强大的工具,你居然还不知道?
  18. mysql workbench6.1 教程_MySQL Workbench 使用教程 (一)
  19. ICPR 2022 | 第一届卫星视频运动目标检测与跟踪挑战赛正式开赛
  20. dojo初解和dojo.connect用法(转)

热门文章

  1. 华为_H3C_Juniper设备常规巡检命令
  2. redis失效了mysql扛不住_我是Redis,MySQL大哥被我害惨了!
  3. 淮海工学院软件测试技术实验三功能测试,软件工程-实验3软件测试技术实验(7页)-原创力文档...
  4. 启动jar包并生成日志的linux脚本
  5. mysql myisam转innodb_Mysql MyISAM数据库批量转换表引擎为Innodb
  6. android测试 课程设计,超星尔雅Android开发课程设计章节测试答案
  7. java如何映射mysql枚举_java中自定义枚举enum映射到mysql数据库字段处理器handler
  8. 留学申请计算机硕士个人陈述,申请美国计算机专业英文个人陈述
  9. java中strictfp关键字,java strictfp关键字用法大全详解
  10. mysql左连接丢失null值的问题