|
3 anni fa | |
---|---|---|
.. | ||
app | 3 anni fa | |
file-sync | 3 anni fa | |
gradle | 4 anni fa | |
.gitignore | 4 anni fa | |
README.md | 3 anni fa | |
build.gradle | 4 anni fa | |
capacitor.settings.gradle | 3 anni fa | |
gradle.properties | 3 anni fa | |
gradlew | 4 anni fa | |
gradlew.bat | 4 anni fa | |
settings.gradle | 3 anni fa | |
variables.gradle | 3 anni fa |
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 android
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
.android/app/build/apk/debug
.[^1] https://developer.android.com/studio/index.html
[^2] https://capacitorjs.com/docs/getting-started/environment-setup