- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试使用 ionic cordova run android --device --stacktrace
在我的 Android 设备上运行我的 Ionic 3 项目,但是,我有以下输出:
...
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.
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project 'android'.
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
阅读其他问题,人们建议使用 Android Studio SDK 管理器并安装最新版本,因为那样我会被询问许可证并且必须接受它们,所以我安装了 Android 8.0 (Oreo) 和 Android API 27是最后可用的更新,但是,我从未被问及任何许可证并且错误仍然存在。我的设备通过 USB 电缆连接到 PC (Windows 10),并且启用了编程器模式和 USB 调试。我该怎么做才能解决这个问题?
我的 SDK 管理器:
更新:
我已经运行了命令 sdkmanager --licenses
在C:\Android\sdk\tools\bin
和 C:\Users\User\AppData\Local\Android\sdk\tools\bin
文件夹和所有丢失的许可证已被接受,但错误仍然存在。
我的 cordova-android 版本在 package.json
: "cordova-android": "~6.3.0"
在config.xml
: <engine name="android" spec="~6.3.0" />
(已经尝试使用 6.3.0
和 6.2.0
没有成功)
报错后:
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.
但我在 C:\Android\android-sdk
中没有许可证文件夹, 就在 C:\Android\sdk
.我如何为 Ionic 检查许可证所在的文件夹?
ionic info
:
cli packages: (C:\Users\User\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Node : v6.11.2
npm : 3.10.10
OS : Windows 10
Environment Variables:
ANDROID_HOME : C:\Android\android-sdk
Misc:
backend : pro
最佳答案
在 SDK 文件夹中,您必须在命令提示符下运行。
...\sdk\tools\bin
输入这条命令
sdkmanager "platforms;android-26"
关于Ionic 3 中的 Android SDK 平台 26 许可证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48026963/
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 6年前关闭。 Improve this qu
我正在制作一个网站(在商业环境中),用户可以将视频上传到我们的服务器 这自然会导致浏览器兼容性问题。解决方案是在服务器上使用 FFmpeg 对它们进行转码。 问题是我一直在阅读 FFmpeg 和它的许
已结束。此问题不符合 Stack Overflow guidelines .它目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 关闭 7 年前。 Improve
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 6年前关闭。 Improve this qu
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 已关闭 8 年前。 Improve
我已将 Sitecore 项目部署到服务器,但收到错误 Required license is missing: Runtime Description: An unhandled exception
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 关闭 7 年前。 Improve
我正在考虑使用 this font来自网站上的 myfonts.com。当您从他们那里购买一种字体用于网络时,您购买的是每月一定数量的页面浏览量的一次性许可证。 此许可证在此处有更详细的描述: htt
我们有 Java Spring 应用程序。应用程序通过 Java Runtime.exec() 调用与 FFmpeg 交互,以便将视频编码为 mp4 格式。考虑到 libx264 是在 GPL 许可下
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6年前关闭。 Improve thi
为了接受 Xcode 许可证 在 CLI 中,我们可以运行 sudo xcodebuild -license 然后控制台会提示 You have not agreed to the Xcode lic
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 6年前关闭。 Improve this qu
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 6年前关闭。 Improve this qu
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 8年前关闭。 Improve this q
已关闭。这个问题是 off-topic 。目前不接受答案。 想要改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 已关闭10 年前。 Improve th
我正在考虑使用 AquaticPrime 作为 Cocoa 共享软件应用程序的 key 生成器。不了解的 friend 可以看这里:http://aquaticmac.com/ 。然而,当我尝试实现它
这个问题在这里已经有了答案: License Gradle Plugin (1 个回答) 9年前关闭。 感谢回复,我正在寻找应用 License-gradle-plugin 来检查源代码中的 head
我们如何使用 gradle 脚本在 src 目录中存在的 .groovy、.java、.jsp、.txt 文件中搜索、跳过和写入所需的头文件(许可证)。 我们如何安装许可证插件? 最佳答案 你的意思是
我正在尝试在 C# 中使用 iText。在我尝试添加许可证 key 之前,我的代码中的一切都运行良好。我到处都说要下载:itext.licensekey.dll 和 itext.licensekey.
如果我有 Ranorex 5.4 的 float 许可证,并且我有几台机器正在运行。我可以知道哪台机器正在使用来自许可证服务器的许可证吗?如果是这样,怎么办? 最佳答案 在许可证服务器上,启动 Ran
我是一名优秀的程序员,十分优秀!