Comments (6)
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.
So, what I've done:
- 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'. - 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. - 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. - Now
echo $ANDROID_HOME
give me this line /Users/lexone/Library/Developer/AndroidSDK, it seems that now all fine. 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...
from skip.
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...
from skip.
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.
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](https://private-user-images.githubusercontent.com/659086/286947308-5cd2199d-2af7-4418-bedf-fa82c2ac8c27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA1NTcyNDksIm5iZiI6MTcxMDU1Njk0OSwicGF0aCI6Ii82NTkwODYvMjg2OTQ3MzA4LTVjZDIxOTlkLTJhZjctNDQxOC1iZWRmLWZhODJjMmFjOGMyNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBV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lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ZtGrZXbLYd8CZxG1784jM1BZF4PSJab2jB0CTaa9Iuw)
from skip.
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)
- A string with a single interpolation is not inferred as ExpressibleByStringInterpolation HOT 1
- @Binding keypath broken in recent releases HOT 1
- Synthesized PackageSupport.kt for a test package is overridden by the source package leading to missing Bundle.module HOT 1
- ExpressibleByStringInterpolation constructor is not inferred for non-interpolated string parameters
- Xcode Internal inconsistency error when running Skip plugin HOT 1
- SwiftUI previews do not work when Skip is enabled HOT 4
- skip checkup passes, but building projects fails with Gradle run error HOT 7
- skip checkup - could not find or install Android Studio. Command line install worked. HOT 2
- Issue when the project starts. doesn't build the project. HOT 8
- Had issues with “skip init”. This command created a project that works. HOT 2
- Command PhaseScriptExecution failed with a nonzero exit code - SkipStone plugin missing output HOT 3
- Support for AsyncStream HOT 2
- Support for `withThrowingTaskGroup` HOT 2
- I can run Skip because gradle command failed when i open in Android Studio works fine but in XCode doesn't work.... HOT 1
- Not able to build after skit init HOT 11
- gradle command failed on HelloSkip HOT 2
- Crash in release builds: java.lang.NullPointerException: null cannot be cast to non-null type skip.ui.PreferenceKeyCompanion<Value of skip.ui.Preference> HOT 1
- skip checkup error HOT 4
- Skip checkup error / Error: the file payload doesn't exist HOT 1
- NavigationStack adds "padding" to android top screen HOT 4
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 skip.