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

Invalid NativePlatform: linux_aarch64 #33

Closed
OPPO9008 opened this issue Oct 17, 2019 · 5 comments
Closed

Invalid NativePlatform: linux_aarch64 #33

OPPO9008 opened this issue Oct 17, 2019 · 5 comments

Comments

@OPPO9008
Copy link

root@localhost:/home/serval# cd Android_boot_image_editor
root@localhost:/home/serval/Android_boot_image_editor# ./gradlew unpack ������������

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':aosp:mkbootfs'.

Exception thrown while executing model rule: NativeComponentModelPlugin.Rules#createBinaries(Targete
dNativeComponentInternal, PlatformResolvers, BuildTypeContainer, FlavorContainer, ServiceRegistry)
Invalid NativePlatform: linux_aarch64

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log
    output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s

@cfig
Copy link
Owner

cfig commented Oct 18, 2019

Hi,
Are U running it on arm64+linux laptop? Or on some dev boards?
Can you list the type details of your host machine?

Thanks.

@OPPO9008
Copy link
Author

i use android chroot Ubuntu 16.04.6 LTS (Xenial Xerus) ,device name is redmi 5. kernel 3.18.140.
login by ssh

@cfig
Copy link
Owner

cfig commented Oct 20, 2019

Seems some modification in build.gradle is needed to compile 'mkbootfs' on aarch64-linux.
I will try to get a similar platform with same arch, but not sure.
If you do need it on your phone, you can try:
(1) remove build dependencies of 'mkbootfs' in gradle files.
(2) compile 'mkbootfs' manually and put it to desired place, a.k.a "./aosp/mkbootfs/build/exe/mkbootfs/mkbootfs"
(3) ...

cfig pushed a commit that referenced this issue Oct 31, 2019
Fix: #33
usage:
    make
    ./gradlew unpack
    ./gradlew pack
@cfig
Copy link
Owner

cfig commented Oct 31, 2019

Hi,
Could you have a try with latest dev branch? I replace build.gradle with makefile for c/cpp compilation, this is more convenient for embedded development.

usage:
    make
    ./gradlew unpack
    ./gradlew pack

"make" will patch some local files, and compile c/cpp. After this, you can run the commands in README.

Thanks.

@cfig
Copy link
Owner

cfig commented Oct 31, 2019

I verified dev branch on x86_64/linux and Raspbian(arm-v7/linux).
Be sure to install gcc/g++.

@cfig cfig closed this as completed in 4b00a2c Nov 4, 2019
cfig added a commit that referenced this issue Nov 8, 2019
Fix: #33
usage:
    make
    ./gradlew unpack
    ./gradlew pack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants