reactnative 集成高德地图 (android) 踩坑,持续

来源:互联网 发布:adobeillustrator mac 编辑:程序博客网 时间:2024/05/16 05:57

一. react-native-amap-location

1. 这个是原作者的导包错了, 换成

import com.reactnativecomponent.amap.RCTAMapPackage;

2. 改好以后完全按照顺序弄,自己加了libs 和xiaobu/amap文件夹 以后还是会出现错误


  弄了许久把app/build.gradle里面的 


这个注销了(新加的这条)

dependencies {
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
    //compile project(':reactamaplocation')
}


然后就暂时好了

原创粉丝点击