-
Notifications
You must be signed in to change notification settings - Fork 79
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
llvm/prebuilt/darwin-x86_64/bin/clang: No such file or directory #28
Comments
@FlorianUekermann is there an additional prerequisite that needs to be installed for this to work? |
I was able to work around this by creating a symlink in
It then failed with a different error when using the wrong target platform
|
This patch allowed me to create an apk file which I could install. It does not work but at least the build finishes... $ git diff
diff --git a/examples/build-android.sh b/examples/build-android.sh
index 09744f9..9e06e31 100755
--- a/examples/build-android.sh
+++ b/examples/build-android.sh
@@ -45,4 +45,4 @@ fi
# Create apk
(cd android; ./gradlew build)
-cp android/app/build/outputs/apk/* android/
+cp android/app/build/outputs/apk/*/*.apk android/
diff --git a/examples/minimal/android/app/build.gradle b/examples/minimal/android/app/build.gradle
index f188903..293c22f 100644
--- a/examples/minimal/android/app/build.gradle
+++ b/examples/minimal/android/app/build.gradle
@@ -1,8 +1,8 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion = 25
- buildToolsVersion = '25.0.0'
+ compileSdkVersion = 27
+ buildToolsVersion = '28.0.2'
defaultConfig {
ndk {
diff --git a/examples/minimal/android/build.gradle b/examples/minimal/android/build.gradle
index c159eef..19639da 100644
--- a/examples/minimal/android/build.gradle
+++ b/examples/minimal/android/build.gradle
@@ -1,15 +1,17 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
+ google()
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.3.0'
+ classpath 'com.android.tools.build:gradle:3.3.0-alpha12'
}
}
allprojects {
repositories {
+ google()
jcenter()
}
}
diff --git a/examples/minimal/android/gradle/wrapper/gradle-wrapper.properties b/examples/minimal/android/gradle/wrapper/gradle-wrapper.properties
index 3c9492c..a899529 100644
--- a/examples/minimal/android/gradle/wrapper/gradle-wrapper.properties
+++ b/examples/minimal/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip |
@magiconair sorry, I been busy the whole year and postponing the fixes for the build scripts for too long :) Thanks for sharing this issue, I'd gladly accept a PR containing the diff. As for prebuilt toolchain, it should build fine using a call to Thx! |
No worries. I know what it is like. Is it still necessary to run
after patching $ git diff android.yml
diff --git a/android.yml b/android.yml
index fa81fc9..84d86b8 100644
--- a/android.yml
+++ b/android.yml
@@ -36,10 +36,11 @@ PARSER:
- android
# NOTE: Replace these paths if you want to re-generate.
# NOTE: Can be processed only with -ccdefs cgogen option enabled.
- - /Users/xlab/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include
- - /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include
- - /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include/linux
- - /Users/xlab/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm/usr/include/android
+ - /Users/frank/android-sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include
+ - /Users/frank/android-sdk/ndk-bundle/sysroot/usr/include
+ - /Users/frank/android-sdk/ndk-bundle/sysroot/usr/include/android
+ - /Users/frank/android-sdk/ndk-bundle/sysroot/usr/include/linux
+ - /Users/frank/android-sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi
SourcesPaths:
- api-level.h
@@ -57,7 +58,7 @@ PARSER:
- rect.h
- sensor.h
- storage_manager.h
- - tts.h
+ #- tts.h
- window.h
- jni.h
- android/jni_call.h |
@magiconair It should not be necessary. Although if you do, specify path |
I'm a Go developer and new to Android and I'm trying to find out whether I can use android-go to build an Android Things app. I am trying to build the
minimal
example with go1.11 on macOS 10.14 (Mojave) for API version 27.I'm getting the following output. Any help is greatly appreciated :)
The text was updated successfully, but these errors were encountered: