bitrise-steplib / steps-install-missing-android-tools

MIT License
16 stars 16 forks source link

Failed to create SDK manager, error: no sdk manager tool found at: /Users/vagrant/Library/Android/sdk/tools/android #20

Closed swmd closed 7 years ago

swmd commented 7 years ago

Hello,

I added the Install missing Android tools step to my Android Workflow. (version 2.0.2) While running the step, I got this error.

+------------------------------------------------------------------------------+

| (2) install-missing-android-tools@2.0.2                                      |
+------------------------------------------------------------------------------+
| id: install-missing-android-tools                                            |
| version: 2.0.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2017-10-04T08:51:59-07:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[08:51:59]  * [OK] Step dependency (go) installed, available. 
Configs:
- RootBuildGradleFile: android/build.gradle
- GradlewPath: android/gradlew
- AndroidHome: /Users/vagrant/Library/Android/sdk
Preparation
Set executable permission for gradlew
Ensure android licences
Initialize Android SDK
_Failed to create SDK manager, error: no sdk manager tool found at: /Users/vagrant/Library/Android/sdk/tools/android_
|                                                                              |
+---+---------------------------------------------------------------+----------+
| **x | install-missing-android-tools@2.0.2 (exit code: 1)**            | 3.71 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...bitrise-steplib/steps-install-missing-android-tools/issues |
| Source: ...://github.com/bitrise-steplib/steps-install-missing-android-tools |
+---+---------------------------------------------------------------+----------+

It appears that my environment is missing android sdk. Can you please tell me how to install it?

ad07b5452960c189.log

slapec93 commented 7 years ago

Hey @SeniorMobileDeveloper

I checked your build and I see that you trying to build an Android project on an OSX stack, that won't work, for Android only app you can use our Android & Docker, on Ubuntu stacks or for Android and iOS app we recommend the Hybrid or Visual Studio for Mac stacks

swmd commented 7 years ago

Hi @slapec93

I am trying to build a React Native project using fastlane. I have already implemented iOS workflow, now trying to complete Android one. I am not sure how to use Hybrid stack, would you give me your hands? Here 's my current bitrise configuration.

bitrise.yml.zip

slapec93 commented 7 years ago

Did you try to use the React Native application type for your app?

swmd commented 7 years ago

I have changed the stack to React Native hybrid stack and the above issue gone away.

But I still have issues in Install missing Android tools step. Please have a look at my logs.

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-ble-plx'.
      > The SDK Build Tools revision (23.0.3) is too low for project ':react-native-ble-plx'. Minimum required is 25.0.0
* 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: 41.849 secs
exit status 1
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | install-missing-android-tools@2.0.2 (exit code: 1)            | 50 sec   |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...bitrise-steplib/steps-install-missing-android-tools/issues |
| Source: ...://github.com/bitrise-steplib/steps-install-missing-android-tools |
+---+---------------------------------------------------------------+----------+
slapec93 commented 7 years ago

It's possible that this stack is too old, could you please try one of our Visual Studio for Mac stack?

swmd commented 7 years ago

They did not work for me too.

viktorbenei commented 7 years ago

@SeniorMobileDeveloper can you please send us the build url in email / via the onsite chat?

viktorbenei commented 7 years ago

Closing here as the discussion continued via the onsite chat support I believe.

If that would not be the case @SeniorMobileDeveloper just let us know and we'll reopen this!