android / codelab-android-dynamic-features

Apache License 2.0
121 stars 47 forks source link

A problem occurred configuring project ':native'. #32

Closed ZangievM closed 3 years ago

ZangievM commented 3 years ago

I've imported project and it doesn't build:

A problem occurred configuring project ':native'.
> java.lang.NullPointerException (no error message)

If I comment native module importing project built successfully

ZangievM commented 3 years ago

Fixed it:

  1. Update gradle version to newest (4.1.2 in my case)
  2. Add android.useAndroidX = true to gradle.properties file
  3. Add distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip to gradle-wrapper.properties