7
Tôi tiếp tục gặp lỗi này khi cố gắng cài đặt Mapbox (được tìm thấy here) trên ứng dụng React-Native của tôi. đánh giá MapboxGLManager.mapStyles
file của tôi là như sau:
Tôi tiếp tục gặp lỗi này khi cố gắng cài đặt Mapbox (được tìm thấy here) trên ứng dụng React-Native của tôi. đánh giá MapboxGLManager.mapStyles
file của tôi là như sau:
Trong build.gradle và settings.gradle của bạn, bạn đã thêm đường sai :
build.gradle
dependencies {
compile project(':react-native-mapbox-gl') // <==== remove this line
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+"
compile project(':reactnativemapboxgl') // <=== missing this line
}
settings.gradle
Hủy bỏ những hai dòng ...
include ':react-native-mapbox-gl'
project(':react-native-mapbox-gl').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mapbox-gl/android')
... và thay thế chúng bằng những:
include ':reactnativemapboxgl'
project(':reactnativemapboxgl').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mapbox-gl/android')
Tôi vẫn gặp lỗi tương tự. – ESensei
Thực ra bây giờ nó đã cho tôi lỗi mà tôi có trước khi tôi gặp phải lỗi này, về cơ bản là giống như vậy, ngoại trừ bây giờ nó nói 'ExceptionsManager.js: 61 Không thể đọc thuộc tính 'bản đồ' không xác định handleException @ ExceptionsManager.js : 61 HandleError @ InitializeJavaScriptAppEngine.js: 122 reportFatalError @ lỗi guard.js: 30 guardedLoadModule @ require.js: 60 _require @ require.js: 49 (chức năng ẩn danh) @ yêu cầu-0.js: 1 executeApplicationScript @ debuggerWorker.js: 18 onmessage @ debuggerWorker.js: 33' – ESensei