Coder Social home page Coder Social logo

Comments (6)

iankoex avatar iankoex commented on June 22, 2024 1

Thanks for the hint.

Turns out the android virtual device was lower than the recommended one hence it was failing because GRADLE> Skipping device 'Pixel_7_Pro_API_25_and_7(AVD) - 7.1.1' for ':app:debug': minSdkVersion [29] > deviceApiLevel [25]

I have now been able to run the app on both platforms successfully.
Once again, Thanks!

from skip.

lexonerus avatar lexonerus commented on June 22, 2024

So, what I've done:

  1. First of all I found command, to see more logs skip checkup --verbose - mostly where fine, but I saw this message: SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/private/var/folders/f4/l_tb9q055mv4m_8g961c6frc0000gn/T/E6C5E9EF-AD09-4496-8E74-B0C5DC6C4E61/hello-skip/.build/plugins/outputs/hello-skip/HelloSkip/skipstone/local.properties'.
  2. It seems that skip can not find AndroidSDK. To fix this issue, I need to set the ANDROID_HOME environment variable to the location of Android SDK. So I opend a terminal and type echo $ANDROID_HOME. Result was empty line, so I need to find location of my AndroidSDK and set it to this variable.
  3. Then in terminal I typed this export ANDROID_HOME=/Users/lexone/Library/Developer/AndroidSDK, in my case AndroidSDK location is in Library/Developer (manually set), you should investigate it by yourself.
  4. Now echo $ANDROID_HOME give me this line /Users/lexone/Library/Developer/AndroidSDK, it seems that now all fine.
  5. skip checkup again
[✓] Skip version 0.7.16 (= 0.7.16)
[✓] macOS version 14.1 (> 13.5.0)
[✓] Swift version 5.9 (= 5.9.0)
[✓] Xcode version 15.0.1 (> 15.0.0)
[✓] Homebrew version 4.1.18 (> 4.1.0)
[✓] Gradle version 8.4 (> 8.3.0)
[✓] Java version 17.0.9 (> 17.0.0)
[✓] Android Debug Bridge version 1.0.41 (> 1.0.40)
[✓] Android Studio version: 2022.3
[✓] Create project hello-skip (1.74s)
[✓] Resolve dependencies (15.63s)
[✓] Build hello-skip (33.52s)
[✓] Test Swift (18.15s)
[✓] Test Kotlin (147.65s)
[✓] Archive iOS ipa (33.21s)
[✓] Assemble HelloSkip-release.ipa (0.02s)
[✓] Verify HelloSkip-release.ipa 23 KB
[✓] Assembling Android apk (138.06s)
[✓] Verify HelloSkip-release.apk 9,5 MB
[✓] Skip 0.7.16 checkup (389.09s)

and all set!
6. Then I tried to rebuild xcode skip project and get same error...

skip-checkup-verbose.txt

from skip.

lexonerus avatar lexonerus commented on June 22, 2024

SOLVED.

  • In Xcode build phases scripts android sdk path is ~/Library/Android/sdk, so I moved sdk
  • Rebuild project and get another error message, something like "build script phase failed"
  • Moved my custom pathes to Derived Data and Archives to default in Xcode
  • Init new skip project and all works well

The point was in custom pathes in Android Studio and Xcode. But it was because I have only 128gb on my internal drive. So I has to moved my MacOs to external SSD 512, and it is another story...

Screenshot 2023-10-31 at 20 20 36

from skip.

iankoex avatar iankoex commented on June 22, 2024

I have the same issue:
I am currently using skip 0.7.30, Xcode 15.0.1 (15A507) and Android Studio 2022.3.1 Patch 4

  • ANDROID_HOME is set correctly.
  • Xcode custom paths and derived data are set to default.
  • All skip checkup tests pass
  • All skip doctor tests pass
  • skip init initializes the project correctly.

The problem arises when building with Xcode, I am getting the error:
Gradle run error: Optional(SkipDriveExternal.ProcessResult.ExitStatus.terminated(code: 1))

from skip.

marcprux avatar marcprux commented on June 22, 2024

What arguments did you pass to skip init when you created the project? If you try to build and test the project from the Terminal with swift test, do you also get errors?

Are there any other errors reported in the Xcode Issues navigator? If all you see is the "Gradle run error" error, then check the Reports navigator's build failure. Expanding the "Run custom shell script 'Run skip gradle'" should give the full output of the gradle command, which will help us identify the issue.

Here are a couple of screenshots showing what it might look like:

Screenshot 2023-11-30 at 08 36 32 Screenshot 2023-11-30 at 08 37 56

from skip.

TobiasPott avatar TobiasPott commented on June 22, 2024

For completeness sake:
I've encountered the same error message and couldn't solve it with the ways described (no custom paths anywhere and everything is updated, though Xcode version is newer now). What it solved it for me as the errors hinted towards a missing toolchain for languageVersion 17 in the gradle step, was including the auto toolchain download for gradle.
I've added the following line to the settings.gradle.kts file.

plugins {
    id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0")
}

This caused the next build to take a while due to the download, but it allowed me to build the project after reopening it in xcode.

from skip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.