googleads-mobile-android-native-templates icon indicating copy to clipboard operation
googleads-mobile-android-native-templates copied to clipboard

Error in gradle sync

Open hkchakladar opened this issue 5 years ago • 3 comments

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'.

hkchakladar avatar Aug 08 '19 10:08 hkchakladar

I have same problem here. Have you resolve it?

oluwasegun277 avatar Aug 10 '19 13:08 oluwasegun277

@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.

hkchakladar avatar Aug 10 '19 13:08 hkchakladar

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

oluwasegun277 avatar Aug 11 '19 16:08 oluwasegun277