Issues building with Native text on Android

Actually, you’re probably right. Regardless of the error details, it can probably be solved by updating the extension for Gradle.

Basically, you want to rearrange the dependencies/android/ directory to look like this.

  1. Delete build.xml and project.properties.
  2. Create a src/ folder. Inside, create a main/ folder. Inside, create a java/ folder.
  3. Move libs/ into src/.
  4. Move the code files into src/main/java/. This is the root folder for Java code, so it should contain folders like com/ and org/.
  5. Move everything else into src/main/.
  6. Add build.gradle at the top level (meaning inside dependencies/android/).
  7. In build.gradle, get rid of “if (1 == 1)” and the eight extra colons. (There should be only three colons before ANDROID_GRADLE_PLUGIN and only two after.)

It’s been a while since I’ve done this, but I think that covers everything.

1 Like