Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools not found? #395

Open
jayenashar opened this issue Jan 18, 2025 · 0 comments
Open

tools not found? #395

jayenashar opened this issue Jan 18, 2025 · 0 comments
Labels

Comments

@jayenashar
Copy link

Version:

$ native-run --version
1.7.2

Description:

failed without error message. sdk-info (below) shows no tools. maybe related to my setup?

$ JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/ ~/pkg/android-sdk/cmdline-tools/bin/sdkmanager --list_installed --sdk_root=$ANDROID_HOME
[=======================================] 100% Fetch remote repository...       
Installed packages:
  Path                 | Version | Description                       | Location            
  -------              | ------- | -------                           | -------             
  build-tools;34.0.0   | 34.0.0  | Android SDK Build-Tools 34        | build-tools/34.0.0  
  platform-tools       | 34.0.5  | Android SDK Platform-Tools 34.0.5 | platform-tools      
  platforms;android-34 | 3       | Android SDK Platform 34           | platforms/android-34

Command Output:

$ npx cap run android --verbose
✔ Copying web assets from dist to android/app/src/main/assets/public in 3.01ms
✔ Creating capacitor.config.json in android/app/src/main/assets in 670.21μs
[info] Inlining sourcemaps
✔ copy android in 9.23ms
✔ Updating Android plugins in 723.91μs
[info] Found 2 Capacitor plugins for android:
       @capacitor/[email protected]
       @capacitor/[email protected]
✔ update android in 17.73ms
[error] native-run failed with error
        
        
        
        More details for this error may be available online:
        https://github.com/ionic-team/native-run/wiki/Android-Errors
        

SDK Info:

$ native-run android --sdk-info
SDK Location:         /home/jayen/pkg/android-sdk
AVD Home:             /home/jayen/.android/avd


Tools:
$ JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/ native-run android --sdk-info
SDK Location:         /home/jayen/pkg/android-sdk
AVD Home:             /home/jayen/.android/avd


Tools:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant