2016-09-16 8 views

उत्तर

0

अपने build.gradle और settings.gradle में, आपके द्वारा जोड़ी गई गलत लाइनें :

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

उन दो पंक्तियों निकालें ...

include ':react-native-mapbox-gl' 
project(':react-native-mapbox-gl').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mapbox-gl/android') 

... और उन्हें इन के साथ बदलें:

include ':reactnativemapboxgl' 
project(':reactnativemapboxgl').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mapbox-gl/android') 
+0

मुझे अभी भी एक ही त्रुटि है। – ESensei

+0

वास्तव में अब यह मुझे त्रुटि मैं इससे पहले कि मैं यह त्रुटि, जो मूल रूप से सिवाय एक ही बात है करने के लिए मिल गया है अब यह कहते दे रहा है 'ExceptionsManager.js: 61 संपत्ति पढ़ा नहीं जा सकता 'mapStyles' अपरिभाषित की handleException @ ExceptionsManager.js : 61 handleError @ InitializeJavaScriptAppEngine.js: 122 reportFatalError @ त्रुटि guard.js: 30 guardedLoadModule @ require.js: 60 _require @ require.js: 49 (अनाम समारोह) @ आवश्यकता-0.js: 1 executeApplicationScript @ debuggerWorker.js: 18 onmessage @ debuggerWorker.js: 33' – ESensei

संबंधित मुद्दे