Automatically accept all SDK licences

后端 未结 30 1782
感情败类
感情败类 2020-11-22 16:35

Since gradle android plugins 2.2-alpha4:

Gradle will attempt to download missing SDK packages that a project depends on

Which

30条回答
  •  孤街浪徒
    2020-11-22 17:19

    Note: This is only for Mac users

    I had same issue but none of the answers posted helped since there was no tools folder present in Library/Android/sdk. (I'm using Android 3.6.3 on Mac OS 10.14.4)

    Below steps helped me to overcome licensing problem error:

    1. Open Android Studio
    2. Press cmd + shift + A. This opens Actions pop-up window.
    3. Search for SDK Manager and hit enter to open.
    4. This opens pop-up for Android SDK. Select some other version of Android apart from already installed one. (In my case Android 10.0 was already installed so I selected Android 9.0)
    5. Then select Apply button. This will install corresponding SDK.

    1. Now run your app it should work without any exception.

提交回复
热议问题