Android APK failed to run, but I tried to fix it
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 36.3k
- Forks
- 1.9k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 33
Description
Description
An error occurs when compiling an APK on wails3, and even if the error is fixed, it will crash after running
Attempted Fixes
I'm not very good at Android development, and the modification originated from deepseek V4, which has now been open-sourced and is running normally. The communication between the front-end and back-end is also not a problem
The modified content is open-sourced, see https://github.com/LanSilence/wails/commit/f906705ba19210e0a0b0361f30bd4421dab51f3a
app
System Details
lan@Ubuntu22:~/workspace/USBCAN/USBCAN_UI$ ./enter.sh usbcan bash
启动开发容器...
run cd usbcan && bash
root@Ubuntu22:/projects/usbcan# wails doctor
bash: wails: command not found
root@Ubuntu22:/projects/usbcan# wails3 doctor
Wails (v3.0.0-alpha.84) Wails Doctor
# System
┌──────────────────────────────────────────────────────────────────┐
| Name | Ubuntu |
| Version | 22.04 |
| ID | ubuntu |
| Branding | 22.04.5 LTS (Jammy Jellyfish) |
| Platform | linux |
| Architecture | amd64 |
| Desktop Environment | unset |
| NVIDIA Driver | N/A |
| XDG_SESSION_TYPE | unset |
| CPU 1 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| CPU 2 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| CPU 3 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| CPU 4 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| CPU 5 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| CPU 6 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| CPU 7 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| CPU 8 | AMD Ryzen 7 PRO 5850U with Radeon Graphics |
| GPU | Unknown |
| Memory | 5GB |
└──────────────────────────────────────────────────────────────────┘
# Build Environment
┌────────────────────────────────┐
| Wails CLI | v3.0.0-alpha.84 |
| Go Version | go1.25.5 |
| -buildmode | exe |
| -compiler | gc |
| CGO_CFLAGS | |
| CGO_CPPFLAGS | |
| CGO_CXXFLAGS | |
| CGO_ENABLED | 1 |
| CGO_LDFLAGS | |
| GOAMD64 | v1 |
| GOARCH | amd64 |
| GOOS | linux |
└────────────────────────────────┘
# Dependencies
┌──────────────────────────────────────────────────────────────────────────────────┐
| gtk4 (experimental) | 4.6.9+ds-0ubuntu0.22.04.2 |
| npm | 10.8.2 |
| pkg-config | 0.29.2-1ubuntu3 |
| webkit2gtk | 2.50.4-0ubuntu0.22.04.1 |
| webkitgtk-6.0 (experimental) | 2.50.4-0ubuntu0.22.04.1 |
| gcc | 12.9ubuntu3 |
| gtk3 | 3.24.33-1ubuntu2.2 |
| docker | *Not installed (optional - for cross-compilation) |
| |
└──────────────────────────── * - Optional Dependency ─────────────────────────────┘
# Checking for issues
SUCCESS No issues found
# Diagnosis
SUCCESS Your system is ready for Wails development!
Need documentation? Run: wails3 docs
♥ If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked commit f906705ba19210e0a0b0361f30bd4421dab51f3a and reproducing the APK build and post-launch crash with wails3 v3.0.0-alpha.84. Run the Android build from the reported project and capture the compiler and runtime logs; done means the APK builds and launches without crashing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, go
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100