Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to compileSdkVersion 24 (Fix #7257) #7287

Merged

Conversation

bekuno
Copy link
Member

@bekuno bekuno commented Feb 10, 2019

Update compileSdkVersion to "Google Inc.:Google APIs:24" and appcompat Libraries to '24.2.1'.
Using the old form of compileSdkVersion because of google maps v1 compatibility.
This is the latest version supporting google maps v1.

@bekuno bekuno changed the title Fix #7257 Update to compileSdkVersion 24 (Fix #7257) Feb 10, 2019
@bekuno
Copy link
Member Author

bekuno commented Feb 10, 2019

This PR supersedes PR #7266.

@moving-bits
Copy link
Member

moving-bits commented Feb 11, 2019

from Jenkins error log:

22:19:40  Checking the license for package Android SDK Platform 24 in /opt/android-sdk-linux/licenses
22:19:40  Warning: License for package Android SDK Platform 24 not accepted.
22:19:40  Checking the license for package Google APIs in /opt/android-sdk-linux/licenses
22:19:40  Warning: License for package Google APIs not accepted.
22:19:41  
22:19:41  
FAILURE: Build failed with an exception.
22:19:41  
22:19:41  * What went wrong:
22:19:41  A problem occurred configuring project ':main'.
22:19:41  > Failed to install the following Android SDK packages as some licences have not been accepted.
22:19:41       platforms;android-24 Android SDK Platform 24
22:19:41       add-ons;addon-google_apis-google-24 Google APIs
22:19:41    To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
22:19:41    Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

@bekuno
Copy link
Member Author

bekuno commented Feb 11, 2019

@kumy Are you responsible for configuring the build environment (new SDK packages, accept license)?

@kumy
Copy link
Member

kumy commented Feb 11, 2019

@bekuno I'll check…

@kumy
Copy link
Member

kumy commented Feb 11, 2019

We use sdkmanager to accept the licenses during install in the docker image.

https://github.com/cgeo/cgeo-executor/blob/0be17aa820d50624b16a87a323730960b9dd1387/Dockerfile#L36

@kumy
Copy link
Member

kumy commented Feb 11, 2019

I need to build new images including right packages https://github.com/cgeo/cgeo-executor/blob/master/android-packages. @bekuno any idea on the exact names needed here?

Info was in the logs:

22:19:41 platforms;android-24 Android SDK Platform 24
22:19:41 add-ons;addon-google_apis-google-24 Google APIs

kumy added a commit to cgeo/cgeo-executor that referenced this pull request Feb 11, 2019
Add android platform 24 as requested per cgeo/cgeo#7287
kumy added a commit to cgeo/cgeo-executor that referenced this pull request Feb 11, 2019
kumy added a commit to cgeo/cgeo-executor that referenced this pull request Feb 11, 2019
Add android platform 24 as requested per cgeo/cgeo#7287
@kumy
Copy link
Member

kumy commented Feb 11, 2019

New build in progress: http://ci.cgeo.org/job/cgeo%20pull%20request/1613/console

@kumy
Copy link
Member

kumy commented Feb 11, 2019

Jenkins: retest this please

@kumy
Copy link
Member

kumy commented Feb 11, 2019

Test is working, so now I need to really build the image and update the executors. But also need to update master node (tomorrow).

@rsudev
Copy link
Contributor

rsudev commented Feb 11, 2019

Thanks @kumy for chiming in so quickly!

@bekuno
Copy link
Member Author

bekuno commented Feb 11, 2019

@kumy Many thanks for the quick customization.

@kumy
Copy link
Member

kumy commented Feb 12, 2019

master node has now the new packages and others were updated

$ sdkmanager "add-ons;addon-google_apis-google-24" "build-tools;28.0.3" "platforms;android-24"
$ sdkmanager --update

Current list of packages on master:

  Path                                | Version | Description                    | Location                            
  -------                             | ------- | -------                        | -------                             
  add-ons;addon-google_apis-google-23 | 1       | Google APIs                    | add-ons/addon-google_apis-google-23/
  add-ons;addon-google_apis-google-24 | 1       | Google APIs                    | add-ons/addon-google_apis-google-24/
  build-tools;23.0.3                  | 23.0.3  | Android SDK Build-Tools 23.0.3 | build-tools/23.0.3/                 
  build-tools;25.0.2                  | 25.0.2  | Android SDK Build-Tools 25.0.2 | build-tools/25.0.2/                 
  build-tools;26.0.2                  | 26.0.2  | Android SDK Build-Tools 26.0.2 | build-tools/26.0.2/                 
  build-tools;27.0.3                  | 27.0.3  | Android SDK Build-Tools 27.0.3 | build-tools/27.0.3/                 
  build-tools;28.0.3                  | 28.0.3  | Android SDK Build-Tools 28.0.3 | build-tools/28.0.3/                 
  emulator                            | 28.0.23 | Android Emulator               | emulator/                           
  extras;android;m2repository         | 47.0.0  | Android Support Repository     | extras/android/m2repository/        
  extras;google;m2repository          | 58      | Google Repository              | extras/google/m2repository/         
  patcher;v4                          | 1       | SDK Patch Applier v4           | patcher/v4/                         
  platform-tools                      | 28.0.1  | Android SDK Platform-Tools     | platform-tools/                     
  platforms;android-23                | 3       | Android SDK Platform 23        | platforms/android-23/               
  platforms;android-24                | 2       | Android SDK Platform 24        | platforms/android-24/               
  tools                               | 26.1.1  | Android SDK Tools              | tools/                              

That's all for me here. Good luck :)

@Lineflyer
Copy link
Member

This PR supersedes PR #7266.

Does this mean #7266 can be considered obsolete. If so, please kindly close it, so we clean up the open PRs a little bit to see what needs to be merged.

@rsudev
Copy link
Contributor

rsudev commented Feb 17, 2019

Retest this please

@bekuno
Copy link
Member Author

bekuno commented Feb 17, 2019

@rsudev Should kumy rewind the changes from today morning?

@rsudev
Copy link
Contributor

rsudev commented Feb 18, 2019

@kumy @bekuno As far as I could see did the updated build image work until the website changes started (sometimes test failures can lead to follow up issues in the build process it seems),
so I would suggest to give the updated version another try.

@kumy
Copy link
Member

kumy commented Feb 18, 2019

I'll relaunch executors on v2.0.2 image.

@kumy
Copy link
Member

kumy commented Feb 18, 2019

Executors are now up-to-date :) Enjoy!

@rsudev
Copy link
Contributor

rsudev commented Feb 18, 2019

Retest this please

@rsudev
Copy link
Contributor

rsudev commented Feb 18, 2019

@kumy Thanks! Looks like both, new compile sdk (this PR) as well as old (e.g. #7308) are working now!

@kumy
Copy link
Member

kumy commented Feb 18, 2019

Hum, I don't know why jenkins didn't reported the errors here, test result should be failed, no?

22:14:15  09:14:19 V/InstrumentationResultParser: FAILURES!!!
22:14:15  09:14:19 V/InstrumentationResultParser: Tests run: 449,  Failures: 2

http://ci.cgeo.org/job/cgeo%20pull%20request/1638/console

@rsudev
Copy link
Contributor

rsudev commented Feb 19, 2019

Very good point. The failures you mention come from the instrumentation step (not sure what this is about) but later on you can see that the test build failed completely (so no tests were run).
Looks like there is a need to check some more things.
Very weird that e.g. build 1641 reports all tests as green, in spite of having the same compilation problem...

Update compileSdkVersion to "Google Inc.:Google APIs:24" and appcompat Libraries to '24.2.1'.
Using the old form of compileSdkVersion because of google maps v1 compatibility.
@bekuno bekuno force-pushed the Arrow_icon_indicating_submenu_no_longer_shown branch from 7af34ae to 53f7f24 Compare February 21, 2019 21:30
@bekuno bekuno changed the base branch from master to release February 21, 2019 21:44
@bekuno bekuno mentioned this pull request Feb 22, 2019
@Lineflyer
Copy link
Member

lets keep this change on hold until after first upcoming release please.

bekuno added a commit to bekuno/cgeo that referenced this pull request Feb 23, 2019
…r PR cgeo#7287

- remove using the SupportLibrary
- remove obsolete buildToolsVersion entry
@UniQP UniQP merged commit 03e2677 into cgeo:release Feb 23, 2019
@bekuno bekuno deleted the Arrow_icon_indicating_submenu_no_longer_shown branch February 25, 2019 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants