YoannRu commented on issue #1477:
URL:
https://github.com/apache/cordova-android/issues/1477#issuecomment-1220514222
First of all thank you for your help and the time you took to answer me
@breautek.
I tried to build with node 14.X, same issue. Unfortunately, i can't use Node
16.X cause of node-sass and ionic 3.X
I confirm that each change I made, I executed these 3 commands :
```
$ ionic cordova platform rm android
$ ionic cordova platform add android@11
$ ionic cordova platform prepare android
```
About the first point I do not have a file in `~/.gradle/gradle.properties`
```
.tmp
daemon
native
wrapper
caches
jdks
notifications
```
Same in my `config.xml`, nothing with gradle.
I check my `cdv-gradle-config.json`, and everything looks ok :
```
{
"MIN_SDK_VERSION": 15,
"SDK_VERSION": 32,
"COMPILE_SDK_VERSION": null,
"GRADLE_VERSION": "7.4.2",
"MIN_BUILD_TOOLS_VERSION": "32.0.0",
"AGP_VERSION": "7.2.1",
"KOTLIN_VERSION": "1.5.21",
"ANDROIDX_APP_COMPAT_VERSION": "1.4.2",
"ANDROIDX_WEBKIT_VERSION": "1.4.0",
"ANDROIDX_CORE_SPLASHSCREEN_VERSION": "1.0.0-rc01",
"GRADLE_PLUGIN_GOOGLE_SERVICES_VERSION": "4.3.10",
"IS_GRADLE_PLUGIN_GOOGLE_SERVICES_ENABLED": false,
"IS_GRADLE_PLUGIN_KOTLIN_ENABLED": false
}
```
In in `project/platform/android/.gradle` I've got this files :
```
.gradle
├── 7.1
│ ├── dependencies-accessors
│ │ ├── dependencies-accessors.lock
│ │ └── gc.properties
│ ├── fileChanges
│ │ └── last-build.bin
│ ├── fileHashes
│ │ └── fileHashes.lock
│ ├── gc.properties
│ └── vcsMetadata-1
├── checksums
│ └── checksums.lock
└── vcs-1
└── gc.properties
```
Another thing that might help, whenever `cordova platform add android@11` I
got this erreur :
```
FAILURE: Build failed with an exception.
* Where:
Script '[...]/platforms/android/CordovaLib/cordova.gradle' line: 114
* What went wrong:
A problem occurred evaluating script.
> Unable to determine Android SDK directory.
* 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 3s
```
And I need to create a local.properties with the sdk.dir variable in it
([issue](https://stackoverflow.com/questions/67398608/unable-to-determine-android-sdk))
If you need any other information, don't hesitate to ask me.
Thanks again for your help.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]