当我尝试在模拟器上安装Facebook-11.apk时,我收到以下消息:
Failure [INSTALL_FAILED_NO_MATCHING_ABIS]
Run Code Online (Sandbox Code Playgroud)
我发现了这个并没有多大帮助.我的模拟器的图像是Intel Atom(x86_x64)(API 21).
我到处搜索,似乎无法找到解决方案.提前致谢!
我有以下内容:
public class ChargeRequest {
@Expose
private String customerName;
@Expose
private String stripeToken;
@Expose
private String plan;
@Expose
private String[] products;
gettersAndSetters()...
public Map<String, Object> toMap() {
return gson.fromJson(this, new TypeToken<Map<String, Object>>() {
}.getType());
}
public String toString() {
return gson.toJson(this, getClass());
}
}
Run Code Online (Sandbox Code Playgroud)
我正试图转换ChargeRequest成一个Map<String, Object>与Gson.
我的适配器:
public static class JsonAdapter implements JsonDeserializer<ChargeRequest>{
@Override
public ChargeRequest deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
ChargeRequest cr = new ChargeRequest();
JsonObject o = json.getAsJsonObject();
o.add("customerName", o.get("customerName")); …Run Code Online (Sandbox Code Playgroud) 如果没有,我怎么能代表使用*ptr?这似乎逃避了我......
基本上我想返回N by 2矩阵,我希望它在内存中保持一致.