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

MIT License
16 stars 16 forks source link

failed to parse compileSDKVersion () #13

Closed alshari86 closed 7 years ago

alshari86 commented 7 years ago

It mentioned the issue fixed in https://github.com/bitrise-steplib/steps-install-missing-android-tools/issues/5 But I still got this problem when do Android build.

viktorbenei commented 7 years ago

Can you please copy paste the step's log here?

alshari86 commented 7 years ago

68384226801e764a.txt

1mCollect dependencies to ensure Analyze build.gradle file: /bitrise/src/banking/mobile/build.gradle Failed to parse build gradle file: /bitrise/src/banking/mobile/build.gradle, error: failed to determine compileSDKVersion, error: failed to find compileSdkVersion Switched to extended analyzer... Failed to analyze build.gradle at: /bitrise/src/banking/mobile/build.gradle, error: failed to parse compileSDKVersion () Analyze build.gradle file: /bitrise/src/banking/misnapworkflow/build.gradle Failed to parse build gradle file: /bitrise/src/banking/misnapworkflow/build.gradle, error: failed to determine compileSDKVersion, error: failed to find compileSdkVersion Switched to extended analyzer... Failed to analyze build.gradle at: /bitrise/src/banking/misnapworkflow/build.gradle, error: failed to parse compileSDKVersion ()

viktorbenei commented 7 years ago

Thanks for sharing @alshari86 !

The related step log:

+------------------------------------------------------------------------------+
| (3) install-missing-android-tools@1.0.2                                      |
+------------------------------------------------------------------------------+
| id: install-missing-android-tools                                            |
| version: 1.0.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2017-05-12T18:16:41Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[18:16:41] Start installing (golang) with apt-get       
INFO[18:16:41]  * [OK] Step dependency (go) installed, available. 

Configs:
- RootBuildGradleFile: banking/build.gradle
- GradlewPath: banking/gradlew
- UpdateSupportLibraryAndPlayServices: true
- AndroidHome: /opt/android-sdk-linux

Search for root settings.gradle file
root build.gradle file: /bitrise/src/banking/build.gradle
root settings.gradle file:: /bitrise/src/banking/settings.gradle

Collect build.gradle files to analyze
active modules to analyze: [mobile misnapworkflow]
build.gradle files to analyze: [/bitrise/src/banking/mobile/build.gradle /bitrise/src/banking/misnapworkflow/build.gradle]

Collect dependencies to ensure
Analyze build.gradle file: /bitrise/src/banking/mobile/build.gradle
Failed to parse build gradle file: /bitrise/src/banking/mobile/build.gradle, error: failed to determine compileSDKVersion, error: failed to find compileSdkVersion
Switched to extended analyzer...
Failed to analyze build.gradle at: /bitrise/src/banking/mobile/build.gradle, error: failed to parse compileSDKVersion ()
Analyze build.gradle file: /bitrise/src/banking/misnapworkflow/build.gradle
Failed to parse build gradle file: /bitrise/src/banking/misnapworkflow/build.gradle, error: failed to determine compileSDKVersion, error: failed to find compileSdkVersion
Switched to extended analyzer...
Failed to analyze build.gradle at: /bitrise/src/banking/misnapworkflow/build.gradle, error: failed to parse compileSDKVersion ()

Ensure dependencies
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ✓ | install-missing-android-tools@1.0.2                           | 3.48 sec |
+---+---------------------------------------------------------------+----------+
alshari86 commented 7 years ago

Thanks for your looking into this, I also contacted bitrise online chat and the error is a warning and will not stop building. In my build failure, there is another thing besides this is to remove "change work dir" in my work flow, but that step is in workflow by default when I created this app. So also need bitrise to look into

godrei commented 7 years ago

Hi @alshari86 , sorry for my late response and thanks for the issue report!

Could you please share your:

build.gradle files contents?

It would help us to debug, why the analyzer failed.

godrei commented 7 years ago

Hi @alshari86 we released a new version (2.0.0) , which uses gradle commands to install the missing components, this version should fix your issue.

I'll close this issue, but if you need more info/help just let us know and we'll reopen it!