imported lib like this -> copy YouTubeAndroidPlayerApi.jar into /app/libs folder -> open Project structure and instead of Module dependency I chose Jar dependency and from libs folder selected YouTubeAndroidPlayerApi.jar. After that gradle completed and now in build.gradle is compile files('libs/YouTubeAndroidPlayerApi.jar')and everything works.
As mike already mentioned in gradle should be compile files('libs/YouTubeAndroidPlayerApi.jar') instead of compile project(':YouTubeAndroidPlayerApi').
https://stackoverflow.com/a/45495225
|
No comments:
Post a Comment