Skip to content

Commit

Permalink
Update Troubleshooting with different iOS fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyettinger committed Jul 6, 2023
1 parent d48427f commit 9d26c5b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,26 @@ well, but you can have 33.0.2 installed in addition to other versions.

To install new build tools, go to Tools -> Android -> SDK Manager, SDK Tools tab, check "Show Package Details" at the
bottom, select Build Tools version 33.0.2, and click Apply or OK. Then follow the installation steps.

### When importing an iOS project, an error mentions SeekableByteChannel.

Like the above error, this involves `void org.apache.commons.compress.archivers.zip.ZipFile.<init>(java.nio.channels.SeekableByteChannel)'`.
This has to do with the placement of the `robovm` plugin, which as of RoboVM 2.3.19 needs to be in `ios/build.gradle`,
not the root `build.gradle`. This will be automatically fixed in projects generated by gdx-liftoff 1.12.0.1, but until
then, you can replace the top of `ios/build.gradle` with:
```gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.mobidevelop.robovm:robovm-gradle-plugin:$robovmVersion"
}
}
apply plugin: 'robovm'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
```
(Starting with the line that sets encoding, everything else is the same.) You will also need to remove any mention of
`robovm` plugin from the top of the root `build.gradle` file; this means a line that starts with `classpath` and a line
`apply plugin: 'robovm'`.

0 comments on commit 9d26c5b

Please sign in to comment.