相关疑难解决方法(0)

版本至少为 30.8.2 的包“Android Emulator”不可用

我使用的是 MacOS 11.5.1 和 Android Studio Artic Fox 2020.3.1。

它发现一个更新。

在此处输入图片说明

但是当我尝试更新它显示 Error Resolving Packages

Package "Android Emulator" with revision at least 30.8.2 not available.

在此处输入图片说明

ide macos android android-studio

6
推荐指数
1
解决办法
236
查看次数

Travis-CI Android SDK许可证问题

我正在尝试用Travis构建我的Android项目,目前我收到错误:

A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK 
components:
[Android SDK Build-Tools 27.0.1].
Run Code Online (Sandbox Code Playgroud)

我不知道怎么样,但昨天我可以解决问题:

before_install:
    - yes | sdkmanager "platforms;android-27"
Run Code Online (Sandbox Code Playgroud)

但现在它对我没有帮助.我会很感激任何建议.

这是构建URL https://travis-ci.org/madsunrise/luna-mobile/jobs/325034903,我也把travis.yml放在下面

sudo: required

language: android
jdk: oraclejdk8

notifications:
  email:
    recipients:
      - rudnev.vanya@gmail.com
    on_success: change
    on_failure: always

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -rf $HOME/.gradle/caches/*/plugin-resolution/

before_install:
  - yes | sdkmanager "platforms;android-27"

cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/
  - $HOME/.android/build-cache

env:
 global:
 - ANDROID_API=27
 - ANDROID_BUILD_TOOLS=27.0.2

android: …
Run Code Online (Sandbox Code Playgroud)

android android-sdk-tools travis-ci

5
推荐指数
1
解决办法
1535
查看次数

Gradle,您尚未接受许可协议(Android SDK)

是的,我知道有很多关于这个主题的帖子,但我尝试过的都不起作用。

我是在 Windows 上从命令行运行 Gradle,而不是从 Android Studio 执行此操作。

我刚刚删除了以前的Android SDK文件夹,下载了最新的Android SDK,并安装到C:\android-sdk

然:

sdkmanager "platform-tools" "build-tools;28.0.3"    "platforms;android-26" "platforms;android-28"
Run Code Online (Sandbox Code Playgroud)

然后跑:

sdkmanager --licenses 
Run Code Online (Sandbox Code Playgroud)

并接受每个许可证及其响应:接受所有 SDK 包许可证

然后我运行:

C:\Dev>SET ANDROID_HOME=C:/android-sdk&&SET PATH=C:/gradle-4.0/bin;%PATH%&&SET JAVA_HOME=C:/Program Files/Java/jdk1.8.0_31&&cd C:/Android/dev/ProgramName&&gradle clean
Run Code Online (Sandbox Code Playgroud)

并得到这个错误:

> You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 28.0.3, Android SDK Platform 28].
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.
Run Code Online (Sandbox Code Playgroud)

ANDROID_HOME 设置为 …

android gradle

5
推荐指数
1
解决办法
2267
查看次数

不接受包 Android SDK Build-Tools 的许可

Gradle 守护进程在 4 秒 958 毫秒内启动

任务 :prepareKotlinBuildScriptModel UP-TO-DATE 无法加载文件 C:\Users\toshiba.android\repositories.cfg。检查 C:\Users\toshiba\AppData\Local\Android\Sdk\licenses 中Android SDK Build-Tools 29.0.2 包的许可证 警告:不接受包 Android SDK Build-Tools 29.0.2 的许可证。 在 C:\Users\toshiba\AppData\Local\Android\Sdk\licenses中检查包 Android SDK Platform 28 的许可证 警告:不接受包 Android SDK Platform 28 的许可证。

android android-studio

4
推荐指数
1
解决办法
5024
查看次数

Android接受SDK [Google Repository,Android Support Repository]的许可协议

当我试图建立项目时

 ionic build android
Run Code Online (Sandbox Code Playgroud)

或者特别添加此插件

$ ionic plugin add cordova-plugin-screen-orientation
Run Code Online (Sandbox Code Playgroud)

用许可证返回此问题

$ ionic plugin add cordova-plugin-screen-orientation
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Fetching plugin "cordova-plugin-screen-orientation" via npm


Installing "cordova-plugin-screen-orientation" for android


ANDROID_HOME=/xxx/Android SDK/adt-bundle-mac-x86_64-20140702/sdk

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.



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:
  [Google Repository, …
Run Code Online (Sandbox Code Playgroud)

android ionic-framework cordova-plugins

0
推荐指数
1
解决办法
2032
查看次数