Closed patrickhofer closed 8 years ago
Android runtime permission require an installed Android SDK of API level 22/23. Can you please make sure that your Android SDK/NDK is up-to-date?
I have exactly the same error here. My Android SDK and NDK are up-to-date, and I can build my project when I remove the wikitude plugin. Thanks :-)
I'm having the same problem, Android is up to date.
Same Issue here I already reinstalled phonegap and cordova.
Which versions of the Android SDK do you use?
SDK 23 (Android 6) just updated before using. When Building a cordova App it runs through but adding the repo to the empty project and building it again gives me this error. Does your Plugin only have the hasPermissions method if the SDK is > Android 4.4?
I tried to build my app by targeting API version 19, 22 and 23, and got the same error each time.
nilebma made me aware of something: Is everyone trying to build it's own app and not our example app? If so, make sure that your cordova/phonegap command for android is either cordova platform add android@5.0.0
or cordova build android@5.0.0
. Our example app generation script contains the version specifier which ensures that all required runtime permissions functions and constants are available. Might be that you need to update your cordova/phonegap installation.
I hope this helps
Hey there I was able to build the app with that.
I made a new app and did cordova platform add android@5.0.0
after that I was able to add the wikitude plugin via github and was able to build the app with cordova build android
(y) I'm glad we found the problem! Have fun using our Plugin!
cordova platform update android@5.0.0
is also an option
Great ! It works for me, thank you :+1:
Marvelous! That command fixed my week-long running problem! Many thanks. This information should be clearly stated in the Wikitude documentation, though.
I followed exactly the tutorial here: http://www.wikitude.com/developer/documentation/phonegap but when i run cordova build i get this error.