googleads / googleads-mobile-android-native-templates

Apache License 2.0
116 stars 102 forks source link

Error in gradle sync #5

Open hkchakladar opened 5 years ago

hkchakladar commented 5 years ago

I have cloned this repo and added nativetemplates folder as a module as shown here https://developers.google.com/admob/android/native/templates

Then after adding the following in app-level build.gradle file, (need to remove extra ) )

implementation project(':NativeTemplatesAndroid-1.0.0')

I got this error when syncing gradle after making these changes:

ERROR: Project with path ':NativeTemplatesAndroid-1.0.0' could not be found in project ':app'.

oluwasegun277 commented 5 years ago

I have same problem here. Have you resolve it?

hkchakladar commented 5 years ago

@oluwasegun277 It can be solved by replacing

implementation project(':NativeTemplatesAndroid-1.0.0')

with

implementation project(':nativetemplates')

The documentation is probably not updated.

And I have left this library and creating native ads from scratch as this library doesn't support androidx.

oluwasegun277 commented 5 years ago

Thanks for your response. I have equally switch to the Advance one. Creating from scratch is easy too. Thanks hkchakladar