小编shj*_*shj的帖子

将json对象保存到android中的firebase

我是firebase的新手,我正在尝试将json对象数据放入我的firebase中.我知道如何将数据作为类对象放入firebase,但我想放置json对象数据.

有没有办法将json对象数据放入firebase而不将其转换为pojo?

android json pojo firebase

9
推荐指数
4
解决办法
1万
查看次数

如何使用gradle实验插件构建NDK模块?

我正在尝试使用NDK构建项目.但是Gradle构建会出错.

这是我的build.gradle(主项目)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

   //     classpath 'com.android.tools.build:gradle-experimental:0.1.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
Run Code Online (Sandbox Code Playgroud)

当我尝试使用这个gradle时:1.5.0它给出了错误'错误:(17,0)插件,id'com.android.model.application'找不到.

另一方面,如果我使用gradle-experimental:0.1.0则会出现错误'错误:(17,0)插件,但未找到id"com.android.application".

我该如何解决这个错误?我的项目中有几个模块.如何设置满足所有模块的gradle?

编辑:

build.gradle(主项目)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
//        classpath 'com.android.tools.build:gradle:1.5.0'

        classpath 'com.android.tools.build:gradle-experimental:0.4.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
} …
Run Code Online (Sandbox Code Playgroud)

android android-ndk gradle-experimental

6
推荐指数
1
解决办法
9239
查看次数