Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71111

CAPACITOR_ANDROID_STUDIO_PATH environment variable in Ionic 5

$
0
0

Tried to add CAPACITOR_ANDROID_STUDIO_PATH environment variable as.

import { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: 'com.barqrscanner.app',
  appName: 'barqrscannerapp',
  webDir: 'www',
  bundledWebRuntime: false,
CAPACITOR_ANDROID_STUDIO_PATH: 'D:\\android-studio-canary\\bin\\studio64.exe'
};

export interface PluginsConfig {
  [CAPACITOR_ANDROID_STUDIO_PATH: string]: | {
        [CAPACITOR_ANDROID_STUDIO_PATH: string]: 'D:\\android-studio-canary\\bin\\studio64.exe';
      }
    | undefined;
}

export default config;

None of it worked showed only this.

PS D:\Projects\BarQrScannerApp> npx cap open android
[error] Unable to launch Android Studio. Is it installed?
        Attempted to open Android Studio at:
        You can configure this with the CAPACITOR_ANDROID_STUDIO_PATH environment variable.

I’ve used Angular 10 with path set as "windowsAndroidStudioPath": "D:\\android-studio-canary\\bin\\studio64.exe",
which works flawlessly but in the Angular 12 it doesn’t work.
There is a change in it as well capacitor.config.json is now capacitor.config.ts in Angular 12,
so how do I fit the windowsAndroidStudioPath or this CAPACITOR_ANDROID_STUDIO_PATH.
The reference I took is this Config path

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71111

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>