Comments (10)
Should be working in @capacitor/cli
0.0.17
. Also made it configurable for Windows since it's not possible to just launch it by program name (as far as I can tell at least):
{
"windows": {
"androidStudioPath": "H:\\path\\to\\Android Studio\\bin\\studio64.exe"
}
}
from capacitor.
Thanks, more windows Testing is called for clearly 😅
from capacitor.
opn("..\\capacitor\\example\\android", { app: 'C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe', wait: false });
from capacitor.
I have Android SDK setup and working. Does capacitor required android studio or will it work with Android SDK.
from capacitor.
It requires Android Studio, what open do is to open Android Studio
from capacitor.
@jcesarmobile can there be a work around to use Android SDK instead?
from capacitor.
We are considering it because of CIs, but I don't think it's a priority at the moment.
Nevertheless, the project Capacitor creates includes gradle, so, from the android folder you can use gradle scripts like gradlew installDebug
to create a debug build and install it on a connected device, or gradlew assembleRelease
to build a release apk, so it's sort of supported out of the box, just not integrated in the Capacitor CLI yet.
from capacitor.
How can open build and run capacitor app on a connected Android device? Can this be done? Going through the docs I only see running in android studio.
from capacitor.
how do you want to open it?
The documented way is using Android Studio, you open it with npx cap open android
and run from there.
To run it using gradle there is nothing to open, just from the terminal, go to android folder and run ./gradlew installDebug
. It just build and install the app in the device, but doesn't launch it.
You can launch it using adb
adb shell am start -n your.app.package/.MainActivity
As I said, this is not integrated in the CLI, it's just regular Android commands that are available with the Android SDK and Gradle, that's why it's not documented.
from capacitor.
@prantikv You do that via Android Studio - in there you can select which device (emulator or connected real device) the app should be run on. (This is similar to how you do it in Xcode for iOS by the way)
from capacitor.
Related Issues (20)
- [Bug]: HTTP-Plugin on iOS: load events not fired HOT 3
- [Bug]: XHR onreadystatechange not working for non POST requests HOT 2
- [Feature]: Allow encrypting cookies before storing them
- [Bug]: duplicate values in `packageClassList` HOT 4
- [Bug]: Android live reload doesn't work, but build works fine. Error: java.lang.IllegalArgumentException: allowedOriginRules HOT 5
- [Bug]: Capacitor Preferences API not worked when Trash the App. HOT 2
- [Feature]: Add a flag for `ios run` to allow for building with Rosetta enabled HOT 4
- [Bug]: HOT 2
- [Bug]: Error: "IDnow" plugin is not implemented on ios HOT 1
- [Feature]: Allow setting global headers for Capacitor Http
- [Bug]: Android live reload not opening Android Studio to use correct signing of the app HOT 2
- [Bug]: Failed to request allowed query parameters from WebPrivacy HOT 5
- [Bug]: for plugins the removeAllListeners function does not exist on iOS HOT 6
- Http Plugin Capacitor Not working in android & ios HOT 1
- [Bug]: UnknownError: Connection to Indexed Database server lost. Refresh the page to try again HOT 3
- [Bug]: All plugins are "not implemented on android" after upgrading to Capacitor 6
- [Bug]: Local plugins within the native iOS project are showing as "not implemented." after upgrading to Capacitor 6 HOT 1
- [Bug]: NativeBridge doesn't pass responseType to native HTTP
- [Feature]: Add progress event emission on native side
- [Feature]: Allow building unsigned ipa HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor.