mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

Failed to sync gradle after apply rust plugin #111

Closed Gaurav-pix closed 1 year ago

Gaurav-pix commented 1 year ago

What i Did...

  1. Added the -> buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath 'org.mozilla.rust-android-gradle:plugin:0.9.3' } }

to top build.gradle(Project:AppName)

  1. set plugin inside build.gradle(Module:App)

plugins { id 'org.mozilla.rust-android-gradle.rust-android' }

-> Expected behaviour properly sync and compile project -> Actual behaviour got error saying "A problem occurred configuring project ':app'.> module cannot be null"

I'm new to this so any help would be appreciated. I'm not sure what went wrong

ncalexan commented 1 year ago

Just in case anybody sees this -- I expect that module was not set in the cargo block.