I already accept the lisance agreements in the project settings-android tab in the accept button event its not clickable again but in the build i get this error:
FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ATC)): * What went wrong:
UATHelper: Packaging (Android (ATC)): A problem occurred configuring project ‘:app’.
UATHelper: Packaging (Android (ATC)): > Could not resolve all dependencies for configuration ‘:app:_debugApk’.
UATHelper: Packaging (Android (ATC)): > A problem occurred configuring project ‘:permission_library’.
UATHelper: Packaging (Android (ATC)): > You have not accepted the license agreements of the following SDK components:
UATHelper: Packaging (Android (ATC)): [Android Support Repository].
UATHelper: Packaging (Android (ATC)): 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.
UATHelper: Packaging (Android (ATC)): Alternatively, to learn how to transfer the license agreements from one workstation to another, go to Sign in - Google Accounts
UATHelper: Packaging (Android (ATC)): * Try:
UATHelper: Packaging (Android (ATC)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (ATC)): BUILD FAILED
try to delete the “android-sdk-license” file in your android-sdk-windows / licenses directory. and accepts the sdk license again in project settings → android.
if the problem persists, disable “enable grade instead of ant” in project settings → android
I tryed it several times what you said and with different android export settings even development build doesnt matter every time i get this error i even delete entire nvpack and redownload but none of it seems working
Same problem on my end. Also did a clean install of the CodeWorksforAndroid-1R6u1-windows, and refreshed the license several times.
Also now apps that used to package for GearVR under 4.17 don’t seem to work even with ANT on 4.18.
LogPlayLevel: A problem occurred configuring project ‘:app’.
LogPlayLevel: > Could not resolve all dependencies for configuration ‘:app:_debugApk’.
LogPlayLevel: > A problem occurred configuring project ‘:permission_library’.
LogPlayLevel: > You have not accepted the license agreements of the following SDK components:
LogPlayLevel: [Android Support Repository].
This worked. I rebuilt my PC this week and was running into this error when trying to launch on GearVR. Using the command line you provided solved the problem for me. Thanks!
got the same problem, open the license file in android sdk with notepad, it should have only a key like this 8933bad161af4178b1185d1a37fbf41ea5269c55, but when you accept the sdk license it puts a white line before and have error.