Skip to content
New issue

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

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

Already on GitHub? # 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/camera@6.1.2
       @capacitor/splash-screen@6.0.3
✔ 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:

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

No branches or pull requests

1 participant