mapbox / flutter-mapbox-gl

Moved to https://github.com/tobrun/flutter-mapbox-gl
Other
271 stars 60 forks source link

Error when using in a new project #51

Closed RNMBuser closed 6 years ago

RNMBuser commented 6 years ago

After adding the Mapbox imports on MainActivity.java that are missing in the Getting Started guide

import com.mapbox.mapboxsdk.*;
import com.mapbox.mapboxsdk.maps.*;
import com.mapbox.mapboxsdk.maps.*;
import com.mapbox.mapboxsdk.camera.*;
import com.mapbox.mapboxsdk.geometry.*;
import com.mapbox.mapboxsdk.constants.*;
import com.mapbox.mapboxsdk.annotations.*;

I still get the following error:

Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.
A problem occurred starting process 'command '/Users/[username]/Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip''
yoavrofe commented 6 years ago

Open the android directory in Android Studio, and upgrade gradle. Then copy android/app/build.gradle from the example project, and I think it should work.

yoavrofe commented 6 years ago

See also here: https://github.com/AgeOfMobile/flutter_mapbox/issues/2

tobrun commented 6 years ago

Correct, following up on this in #55 , for now the steps referenced by @yoavrofe will fix the issue