expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
814 stars 83 forks source link

EAS Build fails for Android on Expo 47 worked previously with 46 #1510

Closed paulsizer closed 1 year ago

paulsizer commented 1 year ago

Build/Submit details page URL

https://expo.dev/accounts/simplytrak/projects/coach-rx/builds/d63af04e-4215-4ce9-ac75-ad0696f1d2ac

Summary

EAS Build fails building my app for Android on Expo 47, iOS builds fine. It worked previously with Expo 46.

Managed or bare?

Managed

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 12.6 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.14.1 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 7.6.3 - ~/Apps/coach-rx-mobile/node_modules/.bin/npm SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 14.1/14B47b - /usr/bin/xcodebuild npmPackages: expo: ^47.0.0 => 47.0.3 react: 18.1.0 => 18.1.0 react-dom: 18.1.0 => 18.1.0 react-native: 0.70.5 => 0.70.5 react-native-web: ~0.18.7 => 0.18.9 npmGlobalPackages: eas-cli: 2.6.0 expo-cli: 6.0.8 Expo Workflow: managed

Error output

Build failed: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

> Task :expo-modules-core:prepareBoost
2434
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
2435
[stderr] FAILURE: Build completed with 2 failures.
2436
[stderr] 1: Task failed with an exception.
2437
[stderr] -----------
2438
[stderr] * What went wrong:
2439
[stderr] Execution failed for task ':app:checkReleaseAarMetadata'.
2440
[stderr] > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
2441
[stderr]    > 26 issues were found when checking AAR metadata:
2442
[stderr]      
2443
[stderr]        1.  Dependency 'androidx.appcompat:appcompat:1.5.1' requires libraries and applications that
2444
[stderr]            depend on it to compile against version 32 or later of the
2445
[stderr]            Android APIs.
2446
[stderr]      
2447
[stderr]            :app is currently compiled against android-31.
2448
[stderr] Recommended action: Update this project to use a newer compileSdkVersion
2449
[stderr]            of at least 32, for example 32.
2450
[stderr]      
2451
[stderr]            Note that updating a library or application's compileSdkVersion (which
2452
[stderr]            allows newer APIs to be used) can be done separately from updating
2453
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2454
[stderr]            minSdkVersion (which determines which devices the app can be installed
2455
[stderr]            on).
2456
[stderr]      
2457
[stderr]        2.  Dependency 'androidx.appcompat:appcompat-resources:1.5.1' requires libraries and applications that
2458
[stderr]            depend on it to compile against version 32 or later of the
2459
[stderr]            Android APIs.
2460
[stderr]      
2461
[stderr]            :app is currently compiled against android-31.
2462
[stderr]      
2463
[stderr]            Recommended action: Update this project to use a newer compileSdkVersion
2464
[stderr]            of at least 32, for example 32.
2465
[stderr]      
2466
[stderr]            Note that updating a library or application's compileSdkVersion (which
2467
[stderr]            allows newer APIs to be used) can be done separately from updating
2468
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2469
[stderr]            minSdkVersion (which determines which devices the app can be installed
2470
[stderr]            on).
2471
[stderr]      
2472
[stderr]        3.  Dependency 'androidx.compose.material:material:1.3.0-beta02' requires libraries and applications that
2473
[stderr]            depend on it to compile against version 33 or later of the
2474
[stderr]            Android APIs.
2475
[stderr]      
2476
[stderr]            :app is currently compiled against android-31.
2477
[stderr]      
2478
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2479
[stderr]            plugin 7.2.1 is 32.
2480
[stderr]      
2481
[stderr]            Recommended action: Update this project's version of the Android Gradle
2482
[stderr]            plugin to one that supports 33, then update this project to use
2483
[stderr]            compileSdkVerion of at least 33.
2484
[stderr]      
2485
[stderr]            Note that updating a library or application's compileSdkVersion (which
2486
[stderr]            allows newer APIs to be used) can be done separately from updating
2487
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2488
[stderr]            minSdkVersion (which determines which devices the app can be installed
2489
[stderr]            on).
2490
[stderr]      
2491
[stderr]        4.  Dependency 'androidx.compose.material:material-ripple:1.3.0-beta02' requires libraries and applications that
2492
[stderr]            depend on it to compile against version 33 or later of the
2493
[stderr]            Android APIs.
2494
[stderr]      
2495
[stderr]            :app is currently compiled against android-31.
2496
[stderr]      
2497
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2498
[stderr]            plugin 7.2.1 is 32.
2499
[stderr]      
2500
[stderr]            Recommended action: Update this project's version of the Android Gradle
2501
[stderr]            plugin to one that supports 33, then update this project to use
2502
[stderr]            compileSdkVerion of at least 33.
2503
[stderr]      
2504
[stderr]            Note that updating a library or application's compileSdkVersion (which
2505
[stderr]            allows newer APIs to be used) can be done separately from updating
2506
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2507
[stderr]            minSdkVersion (which determines which devices the app can be installed
2508
[stderr]            on).
2509
[stderr]      
2510
[stderr]        5.  Dependency 'androidx.compose.foundation:foundation:1.3.0-beta02' requires libraries and applications that
2511
[stderr]            depend on it to compile against version 33 or later of the
2512
[stderr]            Android APIs.
2513
[stderr]      
2514
[stderr]            :app is currently compiled against android-31.
2515
[stderr]      
2516
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2517
[stderr]            plugin 7.2.1 is 32.
2518
[stderr]      
2519
[stderr]            Recommended action: Update this project's version of the Android Gradle
2520
[stderr]            plugin to one that supports 33, then update this project to use
2521
[stderr]            compileSdkVerion of at least 33.
2522
[stderr]      
2523
[stderr]            Note that updating a library or application's compileSdkVersion (which
2524
[stderr]            allows newer APIs to be used) can be done separately from updating
2525
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2526
[stderr]            minSdkVersion (which determines which devices the app can be installed
2527
[stderr]            on).
2528
[stderr]      
2529
[stderr]        6.  Dependency 'androidx.compose.material:material-icons-core:1.3.0-beta02' requires libraries and applications that
2530
[stderr]            depend on it to compile against version 33 or later of the
2531
[stderr]            Android APIs.
2532
[stderr]      
2533
[stderr]            :app is currently compiled against android-31.
2534
[stderr]      
2535
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2536
[stderr]            plugin 7.2.1 is 32.
2537
[stderr]      
2538
[stderr]            Recommended action: Update this project's version of the Android Gradle
2539
[stderr]            plugin to one that supports 33, then update this project to use
2540
[stderr]            compileSdkVerion of at least 33.
2541
[stderr]      
2542
[stderr]            Note that updating a library or application's compileSdkVersion (which
2543
[stderr]            allows newer APIs to be used) can be done separately from updating
2544
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2545
[stderr]            minSdkVersion (which determines which devices the app can be installed
2546
[stderr]            on).
2547
[stderr]      
2548
[stderr]        7.  Dependency 'androidx.compose.runtime:runtime-livedata:1.3.0-beta02' requires libraries and applications that
2549
[stderr]            depend on it to compile against version 33 or later of the
2550
[stderr]            Android APIs.
2551
[stderr]      
2552
[stderr]            :app is currently compiled against android-31.
2553
[stderr]      
2554
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2555
[stderr]            plugin 7.2.1 is 32.
2556
[stderr]      
2557
[stderr]            Recommended action: Update this project's version of the Android Gradle
2558
[stderr]            plugin to one that supports 33, then update this project to use
2559
[stderr]            compileSdkVerion of at least 33.
2560
[stderr]      
2561
[stderr]            Note that updating a library or application's compileSdkVersion (which
2562
[stderr]            allows newer APIs to be used) can be done separately from updating
2563
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2564
[stderr]            minSdkVersion (which determines which devices the app can be installed
2565
[stderr]            on).
2566
[stderr]      
2567
[stderr]        8.  Dependency 'androidx.compose.animation:animation:1.2.1' requires libraries and applications that
2568
[stderr]            depend on it to compile against version 32 or later of the
2569
[stderr]            Android APIs.
2570
[stderr]      
2571
[stderr]            :app is currently compiled against android-31.
2572
[stderr]      
2573
[stderr]            Recommended action: Update this project to use a newer compileSdkVersion
2574
[stderr]            of at least 32, for example 32.
2575
[stderr] Note that updating a library or application's compileSdkVersion (which
2576
[stderr]            allows newer APIs to be used) can be done separately from updating
2577
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2578
[stderr]            minSdkVersion (which determines which devices the app can be installed
2579
[stderr]            on).
2580
[stderr]      
2581
[stderr]        9.  Dependency 'androidx.compose.foundation:foundation-layout:1.3.0-beta02' requires libraries and applications that
2582
[stderr]            depend on it to compile against version 33 or later of the
2583
[stderr]            Android APIs.
2584
[stderr]      
2585
[stderr]            :app is currently compiled against android-31.
2586
[stderr]      
2587
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2588
[stderr]            plugin 7.2.1 is 32.
2589
[stderr]      
2590
[stderr]            Recommended action: Update this project's version of the Android Gradle
2591
[stderr]            plugin to one that supports 33, then update this project to use
2592
[stderr]            compileSdkVerion of at least 33.
2593
[stderr]      
2594
[stderr]            Note that updating a library or application's compileSdkVersion (which
2595
[stderr]            allows newer APIs to be used) can be done separately from updating
2596
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2597
[stderr]            minSdkVersion (which determines which devices the app can be installed
2598
[stderr]            on).
2599
[stderr]      
2600
[stderr]       10.  Dependency 'androidx.compose.animation:animation-core:1.2.1' requires libraries and applications that
2601
[stderr]            depend on it to compile against version 32 or later of the
2602
[stderr]            Android APIs.
2603
[stderr]      
2604
[stderr]            :app is currently compiled against android-31.
2605
[stderr]      
2606
[stderr]            Recommended action: Update this project to use a newer compileSdkVersion
2607
[stderr]            of at least 32, for example 32.
2608
[stderr]      
2609
[stderr]            Note that updating a library or application's compileSdkVersion (which
2610
[stderr]            allows newer APIs to be used) can be done separately from updating
2611
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2612
[stderr]            minSdkVersion (which determines which devices the app can be installed
2613
[stderr]            on).
2614
[stderr]      
2615
[stderr]       11.  Dependency 'androidx.compose.ui:ui:1.3.0-beta02' requires libraries and applications that
2616
[stderr]            depend on it to compile against version 33 or later of the
2617
[stderr]            Android APIs.
2618
[stderr]      
2619
[stderr]            :app is currently compiled against android-31.
2620
[stderr]      
2621
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2622
[stderr]            plugin 7.2.1 is 32.
2623
[stderr]      
2624
[stderr]            Recommended action: Update this project's version of the Android Gradle
2625
[stderr]            plugin to one that supports 33, then update this project to use
2626
[stderr]            compileSdkVerion of at least 33.
2627
[stderr]      
2628
[stderr]            Note that updating a library or application's compileSdkVersion (which
2629
[stderr]            allows newer APIs to be used) can be done separately from updating
2630
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2631
[stderr]            minSdkVersion (which determines which devices the app can be installed
2632
[stderr]            on).
2633
[stderr]      
2634
[stderr]       12.  Dependency 'androidx.compose.ui:ui-text:1.3.0-beta02' requires libraries and applications that
2635
[stderr]            depend on it to compile against version 33 or later of the
2636
[stderr]            Android APIs.
2637
[stderr]      
2638
[stderr]            :app is currently compiled against android-31.
2639
[stderr]      
2640
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2641
[stderr]            plugin 7.2.1 is 32.
2642
[stderr]      
2643
[stderr]            Recommended action: Update this project's version of the Android Gradle
2644
[stderr]            plugin to one that supports 33, then update this project to use
2645
[stderr]            compileSdkVerion of at least 33.
2646
[stderr]      
2647
[stderr]            Note that updating a library or application's compileSdkVersion (which
2648
[stderr]            allows newer APIs to be used) can be done separately from updating
2649
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2650
[stderr]            minSdkVersion (which determines which devices the app can be installed
2651
[stderr]            on).
2652
[stderr]      
2653
[stderr]       13.  Dependency 'androidx.compose.runtime:runtime-saveable:1.3.0-beta02' requires libraries and applications that
2654
[stderr]            depend on it to compile against version 33 or later of the
2655
[stderr]            Android APIs.
2656
[stderr]      
2657
[stderr]            :app is currently compiled against android-31.
2658
[stderr]      
2659
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2660
[stderr]            plugin 7.2.1 is 32.
2661
[stderr]      
2662
[stderr]            Recommended action: Update this project's version of the Android Gradle
2663
[stderr]            plugin to one that supports 33, then update this project to use
2664
[stderr]            compileSdkVerion of at least 33.
2665
[stderr]      
2666
[stderr]            Note that updating a library or application's compileSdkVersion (which
2667
[stderr]            allows newer APIs to be used) can be done separately from updating
2668
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2669
[stderr]            minSdkVersion (which determines which devices the app can be installed
2670
[stderr]            on).
2671
[stderr]      
2672
[stderr]       14.  Dependency 'androidx.compose.ui:ui-graphics:1.3.0-beta02' requires libraries and applications that
2673
[stderr]            depend on it to compile against version 33 or later of the
2674
[stderr]            Android APIs.
2675
[stderr]      
2676
[stderr]            :app is currently compiled against android-31.
2677
[stderr]      
2678
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2679
[stderr]            plugin 7.2.1 is 32.
2680
[stderr]      
2681
[stderr]            Recommended action: Update this project's version of the Android Gradle
2682
[stderr]            plugin to one that supports 33, then update this project to use
2683
[stderr]            compileSdkVerion of at least 33.
2684
[stderr]      
2685
[stderr]            Note that updating a library or application's compileSdkVersion (which
2686
[stderr]            allows newer APIs to be used) can be done separately from updating
2687
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2688
[stderr]            minSdkVersion (which determines which devices the app can be installed
2689
[stderr]            on).
2690
[stderr]      
2691
[stderr]       15.  Dependency 'androidx.compose.ui:ui-unit:1.3.0-beta02' requires libraries and applications that
2692
[stderr]            depend on it to compile against version 33 or later of the
2693
[stderr]            Android APIs.
2694
[stderr]      
2695
[stderr]            :app is currently compiled against android-31.
2696
[stderr]      
2697
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2698
[stderr]            plugin 7.2.1 is 32.
2699
[stderr]      
2700
[stderr]            Recommended action: Update this project's version of the Android Gradle
2701
[stderr]            plugin to one that supports 33, then update this project to use
2702
[stderr]            compileSdkVerion of at least 33.
2703
[stderr]      
2704
[stderr]            Note that updating a library or application's compileSdkVersion (which
2705
[stderr]            allows newer APIs to be used) can be done separately from updating
2706
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2707
[stderr]            minSdkVersion (which determines which devices the app can be installed
2708
[stderr]            on).
2709
[stderr]      
2710
[stderr]       16.  Dependency 'androidx.compose.ui:ui-geometry:1.3.0-beta02' requires libraries and applications that
2711
[stderr]            depend on it to compile against version 33 or later of the
2712
[stderr]            Android APIs.
2713
[stderr] :app is currently compiled against android-31.
2714
[stderr]      
2715
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2716
[stderr]            plugin 7.2.1 is 32.
2717
[stderr]      
2718
[stderr]            Recommended action: Update this project's version of the Android Gradle
2719
[stderr]            plugin to one that supports 33, then update this project to use
2720
[stderr]            compileSdkVerion of at least 33.
2721
[stderr]      
2722
[stderr]            Note that updating a library or application's compileSdkVersion (which
2723
[stderr]            allows newer APIs to be used) can be done separately from updating
2724
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2725
[stderr]            minSdkVersion (which determines which devices the app can be installed
2726
[stderr]            on).
2727
[stderr]      
2728
[stderr]       17.  Dependency 'androidx.compose.ui:ui-tooling-preview:1.3.0-beta02' requires libraries and applications that
2729
[stderr]            depend on it to compile against version 33 or later of the
2730
[stderr]            Android APIs.
2731
[stderr]      
2732
[stderr]            :app is currently compiled against android-31.
2733
[stderr]      
2734
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2735
[stderr]            plugin 7.2.1 is 32.
2736
[stderr]      
2737
[stderr]            Recommended action: Update this project's version of the Android Gradle
2738
[stderr]            plugin to one that supports 33, then update this project to use
2739
[stderr]            compileSdkVerion of at least 33.
2740
[stderr]      
2741
[stderr]            Note that updating a library or application's compileSdkVersion (which
2742
[stderr]            allows newer APIs to be used) can be done separately from updating
2743
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2744
[stderr]            minSdkVersion (which determines which devices the app can be installed
2745
[stderr]            on).
2746
[stderr]      
2747
[stderr]       18.  Dependency 'androidx.compose.runtime:runtime:1.3.0-beta02' requires libraries and applications that
2748
[stderr]            depend on it to compile against version 33 or later of the
2749
[stderr]            Android APIs.
2750
[stderr]      
2751
[stderr]            :app is currently compiled against android-31.
2752
[stderr]      
2753
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2754
[stderr]            plugin 7.2.1 is 32.
2755
[stderr]      
2756
[stderr]            Recommended action: Update this project's version of the Android Gradle
2757
[stderr]            plugin to one that supports 33, then update this project to use
2758
[stderr]            compileSdkVerion of at least 33.
2759
[stderr]      
2760
[stderr]            Note that updating a library or application's compileSdkVersion (which
2761
[stderr]            allows newer APIs to be used) can be done separately from updating
2762
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2763
[stderr]            minSdkVersion (which determines which devices the app can be installed
2764
[stderr]            on).
2765
[stderr]      
2766
[stderr]       19.  Dependency 'androidx.emoji2:emoji2-views-helper:1.2.0' requires libraries and applications that
2767
[stderr]            depend on it to compile against version 32 or later of the
2768
[stderr]            Android APIs.
2769
[stderr]      
2770
[stderr]            :app is currently compiled against android-31.
2771
[stderr]      
2772
[stderr]            Recommended action: Update this project to use a newer compileSdkVersion
2773
[stderr]            of at least 32, for example 32.
2774
[stderr]      
2775
[stderr]            Note that updating a library or application's compileSdkVersion (which
2776
[stderr]            allows newer APIs to be used) can be done separately from updating
2777
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2778
[stderr]            minSdkVersion (which determines which devices the app can be installed
2779
[stderr]            on).
2780
[stderr]      
2781
[stderr]       20.  Dependency 'androidx.emoji2:emoji2:1.2.0' requires libraries and applications that
2782
[stderr]            depend on it to compile against version 32 or later of the
2783
[stderr]            Android APIs.
2784
[stderr]      
2785
[stderr]            :app is currently compiled against android-31.
2786
[stderr]      
2787
[stderr]            Recommended action: Update this project to use a newer compileSdkVersion
2788
[stderr]            of at least 32, for example 32.
2789
[stderr]      
2790
[stderr]            Note that updating a library or application's compileSdkVersion (which
2791
[stderr]            allows newer APIs to be used) can be done separately from updating
2792
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2793
[stderr]            minSdkVersion (which determines which devices the app can be installed
2794
[stderr]            on).
2795
[stderr]      
2796
[stderr]       21.  Dependency 'androidx.customview:customview-poolingcontainer:1.0.0' requires libraries and applications that
2797
[stderr]            depend on it to compile against version 32 or later of the
2798
[stderr]            Android APIs.
2799
[stderr]      
2800
[stderr]            :app is currently compiled against android-31.
2801
[stderr]      
2802
[stderr]            Recommended action: Update this project to use a newer compileSdkVersion
2803
[stderr]            of at least 32, for example 32.
2804
[stderr]      
2805
[stderr]            Note that updating a library or application's compileSdkVersion (which
2806
[stderr]            allows newer APIs to be used) can be done separately from updating
2807
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2808
[stderr]            minSdkVersion (which determines which devices the app can be installed
2809
[stderr]            on).
2810
[stderr]      
2811
[stderr]       22.  Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that
2812
[stderr]            depend on it to compile against version 33 or later of the
2813
[stderr]            Android APIs.
2814
[stderr]      
2815
[stderr]            :app is currently compiled against android-31.
2816
[stderr]      
2817
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2818
[stderr]            plugin 7.2.1 is 32.
2819
[stderr]      
2820
[stderr]            Recommended action: Update this project's version of the Android Gradle
2821
[stderr]            plugin to one that supports 33, then update this project to use
2822
[stderr]            compileSdkVerion of at least 33.
2823
[stderr]      
2824
[stderr]            Note that updating a library or application's compileSdkVersion (which
2825
[stderr]            allows newer APIs to be used) can be done separately from updating
2826
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2827
[stderr]            minSdkVersion (which determines which devices the app can be installed
2828
[stderr]            on).
2829
[stderr]      
2830
[stderr]       23.  Dependency 'androidx.core:core:1.9.0' requires libraries and applications that
2831
[stderr]            depend on it to compile against version 33 or later of the
2832
[stderr]            Android APIs.
2833
[stderr]      
2834
[stderr]            :app is currently compiled against android-31.
2835
[stderr]      
2836
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2837
[stderr]            plugin 7.2.1 is 32.
2838
[stderr]      
2839
[stderr]            Recommended action: Update this project's version of the Android Gradle
2840
[stderr]            plugin to one that supports 33, then update this project to use
2841
[stderr]            compileSdkVerion of at least 33.
2842
[stderr]      
2843
[stderr]            Note that updating a library or application's compileSdkVersion (which
2844
[stderr]            allows newer APIs to be used) can be done separately from updating
2845
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2846
[stderr]            minSdkVersion (which determines which devices the app can be installed
2847
[stderr]            on).
2848
[stderr]      
2849
[stderr]       24.  Dependency 'androidx.profileinstaller:profileinstaller:1.2.0' requires libraries and applications that
2850
[stderr]            depend on it to compile against version 32 or later of the
2851
[stderr]            Android APIs.
2852
[stderr] :app is currently compiled against android-31.
2853
[stderr]      
2854
[stderr]            Recommended action: Update this project to use a newer compileSdkVersion
2855
[stderr]            of at least 32, for example 32.
2856
[stderr]      
2857
[stderr]            Note that updating a library or application's compileSdkVersion (which
2858
[stderr]            allows newer APIs to be used) can be done separately from updating
2859
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2860
[stderr]            minSdkVersion (which determines which devices the app can be installed
2861
[stderr]            on).
2862
[stderr]      
2863
[stderr]       25.  Dependency 'androidx.compose.ui:ui-util:1.3.0-beta02' requires libraries and applications that
2864
[stderr]            depend on it to compile against version 33 or later of the
2865
[stderr]            Android APIs.
2866
[stderr]      
2867
[stderr]            :app is currently compiled against android-31.
2868
[stderr]      
2869
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2870
[stderr]            plugin 7.2.1 is 32.
2871
[stderr]      
2872
[stderr]            Recommended action: Update this project's version of the Android Gradle
2873
[stderr]            plugin to one that supports 33, then update this project to use
2874
[stderr]            compileSdkVerion of at least 33.
2875
[stderr]      
2876
[stderr]            Note that updating a library or application's compileSdkVersion (which
2877
[stderr]            allows newer APIs to be used) can be done separately from updating
2878
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2879
[stderr]            minSdkVersion (which determines which devices the app can be installed
2880
[stderr]            on).
2881
[stderr]      
2882
[stderr]       26.  Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that
2883
[stderr]            depend on it to compile against version 33 or later of the
2884
[stderr]            Android APIs.
2885
[stderr]      
2886
[stderr]            :app is currently compiled against android-31.
2887
[stderr]      
2888
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
2889
[stderr]            plugin 7.2.1 is 32.
2890
[stderr]      
2891
[stderr]            Recommended action: Update this project's version of the Android Gradle
2892
[stderr]            plugin to one that supports 33, then update this project to use
2893
[stderr]            compileSdkVerion of at least 33.
2894
[stderr]      
2895
[stderr]            Note that updating a library or application's compileSdkVersion (which
2896
[stderr]            allows newer APIs to be used) can be done separately from updating
2897
[stderr]            targetSdkVersion (which opts the app in to new runtime behavior) and
2898
[stderr]            minSdkVersion (which determines which devices the app can be installed
2899
[stderr]            on).
2900
[stderr] * Try:
2901
[stderr] > Run with --stacktrace option to get the stack trace.
2902
[stderr] > Run with --info or --debug option to get more log output.
2903
[stderr] > Run with --scan to get full insights.
2904
[stderr] ==============================================================================
2905
[stderr] 2: Task failed with an exception.
2906
[stderr] -----------
2907
[stderr] * What went wrong:
2908
[stderr] java.lang.StackOverflowError (no error message)
2909
[stderr] * Try:
2910
[stderr] > Run with --stacktrace option to get the stack trace.
2911
[stderr] > Run with --info or --debug option to get more log output.
2912
[stderr] > Run with --scan to get full insights.
2913
[stderr] ==============================================================================
2914
[stderr] * Get more help at https://help.gradle.org
2915
[stderr] BUILD FAILED in 6m 7s
2916
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
2917
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
2918
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
2919
Execution optimizations have been disabled for 5 invalid unit(s) of work during this build to ensure correctness.
2920
Please consult deprecation warnings for more details.
2921
905 actionable tasks: 905 executed
2922
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Reproducible demo or steps to reproduce from a blank project

N/A

amitava82 commented 1 year ago

Same error

Rakshit-Tagline commented 1 year ago

I am also getting same issue while generating android build after upgrading expo-sdk to 47.

expo-bot commented 1 year ago

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources

Joshandrews43 commented 1 year ago

also getting this error

amitava82 commented 1 year ago

Solved by using expo-build-properties

    [
      "expo-build-properties",
      {
        "android": {
          "compileSdkVersion": 33,
          "targetSdkVersion": 33,
          "buildToolsVersion": "33.0.0"
        },
        "ios": {
          "deploymentTarget": "13.0"
        }
      }
    ]
bpringe commented 1 year ago

I've tried the solution @amitava82 provided above (and installed expo-buildd-properties), but the build is still failing with errors about the compile sdk version. Has anyone else had this problem and found a solution?

bpringe commented 1 year ago

I have this in my plugins:

  plugins: [
    // ... other plugins
    [
      "expo-build-properties",
      {
        android: {
          compileSdkVersion: 33,
          targetSdkVersion: 33,
          buildToolsVersion: "33.0.0",
        },
        ios: {
          deploymentTarget: "13.0",
        },
      },
    ],
  ]

But in the gradlew logs I still see things like the below:

[stderr]            :app is currently compiled against android-31.
[stderr]      
[stderr]            Also, the maximum recommended compile SDK version for Android Gradle
[stderr]            plugin 7.2.1 is 32.
[stderr]      
[stderr]            Recommended action: Update this project's version of the Android Gradle
[stderr] plugin to one that supports 33, then update this project to use
[stderr]            compileSdkVerion of at least 33.
amitava82 commented 1 year ago

@bpringe update eas.json to use latest image like so

    "production": {
      "channel": "prod",
      "ios": {
        "image": "latest"
      }
    }
bpringe commented 1 year ago

@amitava82 I've done that, but the errors still occur. To be more specific, I'm trying to build a dev client for Android. My eas.json config for that profile:

    "development": {
      "extends": "production",
      "env": {
        "APP_VARIANT": "development"
      },
      "developmentClient": true,
      "channel": "development",
      "distribution": "internal",
      "android": {
        "buildType": "apk",
        "image": "latest"
      },
      "ios": {
        "simulator": true,
        "image": "default"
      }
    }

I see this in the logs of the failed gradlew build step:

WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32
This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties
The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

I'm not sure if this is related to the issue, but Is there a way to update the Android Gradle Plugin version used in the build?