ANDROID_HOME=/mnt/c/Users/loren/AppData/Local/Android/sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_eg0v6jn07pkb30zbm0ur255t0.run(/mnt/c/Users/loren/WebSiteX5Manager/platforms/android/build.gradle:139)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild
UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:compileDebugAidl'.
> java.lang.IllegalStateException: aidl is missing
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.905 secs
Error: /mnt/c/Users/loren/WebSiteX5Manager/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:compileDebugAidl'.
> java.lang.IllegalStateException: aidl is missing
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I’ve tried to remove and readd android platform, I’ve done all the suggested updates on Android Studio, but I’m stuck with this error.
Can someone help me?
Thanks in advance
> cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
android: Command failed with exit code ENOENT
Gradle: installed /usr/share/gradle/bin/gradle
Error: Some of requirements check failed
I can see ‘Android target: not installed’ : what should I do for fix this issue?
In my config.xml I haven’t specified any preference for ‘android-targetSdkVersion’, I have only <preference name="android-minSdkVersion" value="19" />
Hi,
I’ve resolved my issue, I write here the solution in case someone else will get stuck on the same problem.
The problem was related to windows10’s Bash.
Android Studio was updated, and I’ve installed everything that can be installed
Than I’ve realized that Window’s Bash is a linux environment and it can’t run .exe files and .bat that are created by Android Studio! (what a dumb)
So I’ve downloaded android-sdk for linux, I’ve updated everything with sdkmanager and now myionic cordova requirements is “happy”:
hi @loreb ,
i got the same case and try to requirement that issue, but i found that android target not installed and i use win7, so how i can solve this ??
Hello @loreb, have you figured out how to test Ionic Android apps via the emulator and WSL?
I have only been able to successfully build an APK file when installing and configuring everything related to android-sdk via Linux WSL, but since there is no GUI I can’t use the Android emulator. I’m trying to figure out how to test apps via the Windows Android emulator, but have been stuck on this for days. Any ideas?? Thanks!