You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **⚠️ Important:** If you're building for Android, you **must** configure the JitPack repository before building. The plugin will not compile without this step.
103
+
104
+
The plugin depends on `com.github.mik3y:usb-serial-for-android:3.8.1`, which is hosted on JitPack. Add the following to your `/src-tauri/gen/android/build.gradle.kts` file:
To use this plugin on Android, you need to add the JitPack repository to your project's `build.gradle.kts` file located at `/src-tauri/gen/android/build.gradle.kts`. Below is an example of how to configure it:
1663
+
To use this plugin on Android, you **must** add the JitPack repository to your project's `build.gradle.kts` file located at `/src-tauri/gen/android/build.gradle.kts`. This is required because the plugin depends on `com.github.mik3y:usb-serial-for-android:3.8.1`, which is hosted on JitPack.
1664
+
1665
+
### Required Configuration
1666
+
1667
+
Add the JitPack repository to both `buildscript` and `allprojects` sections:
The plugin uses the [usb-serial-for-android](https://github.com/mik3y/usb-serial-for-android) library, which is published on JitPack rather than Maven Central. Without adding JitPack to your repositories, Gradle will fail with an error like:
1699
+
1640
1700
```
1701
+
could not find com.github.mik3y:usb-serial-for-android:3.8.1
1702
+
```
1703
+
1704
+
### Troubleshooting
1705
+
1706
+
If you still encounter issues after adding JitPack:
1707
+
1708
+
1. Make sure you've added it to **both**`buildscript.repositories` and `allprojects.repositories`
1709
+
2. Sync your Gradle files in your IDE
1710
+
3. Clean and rebuild your project: `./gradlew clean build`
0 commit comments