|
|
3 年 前 | |
|---|---|---|
| .. | ||
| app | 3 年 前 | |
| gradle | 4 年 前 | |
| .gitignore | 4 年 前 | |
| README.md | 3 年 前 | |
| build.gradle | 4 年 前 | |
| capacitor.settings.gradle | 3 年 前 | |
| gradle.properties | 3 年 前 | |
| gradlew | 4 年 前 | |
| gradlew.bat | 4 年 前 | |
| settings.gradle | 4 年 前 | |
| variables.gradle | 3 年 前 | |
Install Android studio [^1] and SDK (newer than 30) tools Note: for M1 MacBook users.
unzip it and move Android Studio.app file to Applications, or you will get the following error later.
[error] Unable to launch Android Studio. Is it installed?
Attempted to open Android Studio at: /Applications/Android Studio.app
You can configure this with the CAPACITOR_ANDROID_STUDIO_PATH environment variable.
In Android Studio, open Tools -> SDK Manager to install other SDK tools [^2].
In the SDK Tools tab, make sure to install at least the following:
- Android SDK Build-Tools
- Android SDK Command-line Tools
- Android Emulator
- Android SDK Platform-Tools
server url with your local-ip-address:3001 (run ifconfig to check) in capacitor.config.ts.yarn && yarn app-watch from the logseq project root directory in terminal.npx cap sync android in another termimal (all-in-one cmd).server url in capacitor.config.ts.yarn clean && yarn release-app && rm -rf ./public/static && rm -rf ./static/js/*.map && mv static ./public && npx cap sync android && npx cap run androidserver url in capacitor.config.ts.yarn clean && yarn release-app && rm -rf ./public/static && rm -rf ./static/js/*.map && mv static ./public && npx cap sync android.android/app/build/apk/debug.[^1] https://developer.android.com/studio/index.html
[^2] https://capacitorjs.com/docs/getting-started/environment-setup