คำถามติดแท็ก react-native-maps

6
ไม่รู้จักคุณสมบัติ 'supportLibVersion' สำหรับวัตถุประเภท org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
ฉันได้รับข้อผิดพลาดดังต่อไปนี้ ไม่สามารถรับคุณสมบัติที่ไม่รู้จัก 'supportLibVersion' สำหรับวัตถุประเภท org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHand ฉันกำลังทำงานกับแอปพลิเคชั่นที่มีการตอบสนองดั้งเดิมและการพึ่งพาการตอบสนองต่อแผนที่มีอยู่ด้านล่างซึ่งฉันได้รับข้อผิดพลาด dependencies { def supportLibMajorVersion = supportLibVersion.split('\\.')[0] as int def appCompatLibName = (supportLibMajorVersion < 20) ? "androidx.appcompat:appcompat" : "com.android.support:appcompat-v7" implementation "$appCompatLibName:$supportLibVersion" implementation('com.facebook.react:react-native:+') { exclude group: 'com.android.support' } implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '16.1.0')}" implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '16.1.0')}" implementation 'com.google.maps.android:android-maps-utils:0.5' } ทุกคนมีความคิดว่าเกิดอะไรขึ้นที่นี่ ข้อผิดพลาดใน terminal คือ FAILURE: บิลด์ล้มเหลวโดยมีข้อยกเว้น สถานที่: สร้างไฟล์ 'D: …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.