- Creating bundle package with 8.1.0 not working #855
- Comments
- desmeit commented Oct 21, 2019 •
- Bug Report
- Problem
- What is expected to happen?
- What does actually happen?
- Information
- Command or Code
- Environment, Platform, Device
- Version information
- Checklist
- breautek commented Oct 21, 2019
- breautek commented Oct 21, 2019
- How to Fix “SDK location not found” in Android Studio?
- When switching from one IDE to another (Like from Eclipse to Android Studio)
Creating bundle package with 8.1.0 not working #855
Comments
desmeit commented Oct 21, 2019 •
Bug Report
I tried with 8.1.0:
Problem
After the command
./gradlew bundleRelease
I get an error.
What is expected to happen?
Creating .aab bundle package.
What does actually happen?
Adding platform is working
Build Process ist working as well
If I try to create bundle package, I get this error:
Information
Cordova 9.0.0
Cordova Android 8.1.0
Command or Code
Environment, Platform, Device
Version information
Checklist
- [X ] I searched for existing GitHub issues
- [X ] I updated all Cordova tooling to most recent version
- [ X] I included all the necessary information above
The text was updated successfully, but these errors were encountered:
breautek commented Oct 21, 2019
Can you run cordova requirements android and tell me the output? Thanks.
breautek commented Oct 21, 2019
Sorry, just noticed
Unable to determine Android SDK directory.
This means you don’t have the android SDK installed, or it’s not in a path findable by cordova.
To install the android SDK, it’s recommended to install the android studio (this will give you GUI tools to install everything that you need). https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#android-sdk
If you already do have the android sdk installed, then you may need to set your environment variables. https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#setting-environment-variables
Also note that cordova-android 8.0.0 or later requires android API 28 at minimum.
Источник
How to Fix “SDK location not found” in Android Studio?
Google developed Android SDK which is a Software Development Kit developed by Google for the Android platform. You can create Android apps using Android SDK, and you don’t need to be an expert to use it. Android SDK and Android Studio come bundled together, with Google’s official integrated development environment (IDE) for the Android operating system.
In this article, we see how to fix an error that is related to the main Android building component of Android Studio that is the Android SDK. The most common error related to Android SDK is “SDK location not found“. This message pops up stating that the location of Android SDK was not detected when the path of SDK is assigned incorrectly. There can also be other reasons for this error message as well and we will see ways to get rid of this error.
When switching from one IDE to another (Like from Eclipse to Android Studio)
Method 1
In this case, follow the below steps:
Method 2
In case the above procedure doesn’t work then add the ANDROID_HOME variable in “Environment Variables” as C:\Users\Username\AppData\Local\Android\Sdk.
Method 3
In case it does not work even then, then you need to change the directory path on Project Structure as well.
- Close the current project and you’ll see a pop-up with a dialog which will then proceed to Configure option.
- Configure -> Project Defaults -> Project Structure -> SDKs on left column -> Android SDK Home Path -> give the exact path as you did on local.properties and select Valid Target.
Method 4
A settings.gradle file might be missing from the project. Make sure that the file exists from the project you are importing. If not add the settings.gradle file with the following:
Save the file and put it in the top-level folder in your project.
Источник