Commit 5b16e19
committed
fix: resolve SDK platform dir for minor-versioned platforms (android-37.0)
Starting with the API 36.1 scheme, the SDK can ship platforms only in
minor-versioned directories (e.g. android-37.0) with no plain android-37
alias, so paths built as "platforms/" + android.compileSdkVersion break
the SBG classpath and the typings include filter with a
FileNotFoundException on android.jar.
Resolve the real platform directory against disk instead: exact match
first, else the highest android-N.M for the API level (extension dirs
like android-33-ext4 are not base platforms), with a clear error when
no platform is installed. Resolution happens at execution time so a
missing platform fails the SBG/typings task rather than configuration.1 parent 6ebb265 commit 5b16e19
1 file changed
Lines changed: 42 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
667 | 704 | | |
668 | 705 | | |
669 | 706 | | |
670 | 707 | | |
671 | 708 | | |
672 | | - | |
673 | 709 | | |
674 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
675 | 714 | | |
676 | 715 | | |
677 | 716 | | |
| |||
1042 | 1081 | | |
1043 | 1082 | | |
1044 | 1083 | | |
1045 | | - | |
1046 | 1084 | | |
1047 | 1085 | | |
1048 | 1086 | | |
1049 | 1087 | | |
1050 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
1051 | 1091 | | |
1052 | 1092 | | |
1053 | 1093 | | |
| |||
0 commit comments