- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
大家好,我遇到了无法将数据发送到服务器的问题。首先,我尝试通过在 StarterApplication.java 处写入(ParseObject)来发送数据,并且它可以工作。但是当在 处写入(ParseObject)时>MainActivity.java 不起作用。为什么?。希望你们能帮我解决这个问题。TQ
LOGCAT
05-17 15:03:28.128 1735-1735/com.parse.starter I/art: jiangtaottt OpenDexFilesFromOat open_oat_file.get() == nullptr /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-support-vector-drawable-23.4.0_301a24434564d06ffe12a56ff7da00f52e346cb8-classes.dex
05-17 15:03:28.132 1735-2020/com.parse.starter I/art: jiangtaottt DexFile_ThirdDex2oatNative 222/data/data/com.parse.starter/files/instant-run/dex/slice-com.google.android.gms-play-services-ads-9.4.0_51356d099b9793fc820c0bb434ab4f81fcffdbec-classes.dex
05-17 15:03:28.133 1735-2020/com.parse.starter I/art: jiangtaottt get_parent_dir: parent: /data/data/com.parse.starter i=28
05-17 15:03:28.133 1735-2020/com.parse.starter I/art: jiangtaottt DexFile_ThirdDex2oatNative is dexing /data/data/com.parse.starter/dexing-flag
05-17 15:03:28.142 1735-1735/com.parse.starter E/System: elements.add : /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-support-vector-drawable-23.4.0_301a24434564d06ffe12a56ff7da00f52e346cb8-classes.dex null /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-support-vector-drawable-23.4.0_301a24434564d06ffe12a56ff7da00f52e346cb8-classes.dex
05-17 15:03:28.143 1735-1735/com.parse.starter I/art: jiangtaottt OpenDexFilesFromOat open_oat_file.get() == nullptr /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-support-v4-23.4.0_48aa21b4e8403c1677e9ab895231d93ecfe54c25-classes.dex
05-17 15:03:28.155 1735-1735/com.parse.starter E/System: elements.add : /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-support-v4-23.4.0_48aa21b4e8403c1677e9ab895231d93ecfe54c25-classes.dex null /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-support-v4-23.4.0_48aa21b4e8403c1677e9ab895231d93ecfe54c25-classes.dex
05-17 15:03:28.156 1735-1735/com.parse.starter I/art: jiangtaottt OpenDexFilesFromOat open_oat_file.get() == nullptr /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-multidex-1.0.1_3727344502c75ae6bc14c2f0efce22a2f915d89d-classes.dex
05-17 15:03:28.253 1735-1735/com.parse.starter E/System: elements.add : /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-multidex-1.0.1_3727344502c75ae6bc14c2f0efce22a2f915d89d-classes.dex null /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-multidex-1.0.1_3727344502c75ae6bc14c2f0efce22a2f915d89d-classes.dex
05-17 15:03:28.259 1735-1735/com.parse.starter I/art: jiangtaottt OpenDexFilesFromOat open_oat_file.get() == nullptr /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-mediarouter-v7-23.0.0_2ef8fc2a0c6a2fe4d1d819e09cfdd1e223aceadd-classes.dex
05-17 15:03:28.344 1735-1735/com.parse.starter E/System: elements.add : /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-mediarouter-v7-23.0.0_2ef8fc2a0c6a2fe4d1d819e09cfdd1e223aceadd-classes.dex null /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-mediarouter-v7-23.0.0_2ef8fc2a0c6a2fe4d1d819e09cfdd1e223aceadd-classes.dex
05-17 15:03:28.345 1735-1735/com.parse.starter I/art: jiangtaottt OpenDexFilesFromOat open_oat_file.get() == nullptr /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-appcompat-v7-23.4.0_7c9c4c583792bd7fa91047936d492183a0729810-classes.dex
05-17 15:03:28.452 1735-2006/com.parse.starter I/art: jiangtaottt DexFile_ThirdDex2oatNative success 333/data/data/com.parse.starter/files/instant-run/dex/slice-com.google.android.gms-play-services-analytics-9.4.0_d335cf156da033164f9e20361a0eb22e92eec4ae-classes.dex
05-17 15:03:28.458 1735-1735/com.parse.starter E/System: elements.add : /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-appcompat-v7-23.4.0_7c9c4c583792bd7fa91047936d492183a0729810-classes.dex null /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-appcompat-v7-23.4.0_7c9c4c583792bd7fa91047936d492183a0729810-classes.dex
05-17 15:03:28.460 1735-1735/com.parse.starter I/art: jiangtaottt OpenDexFilesFromOat open_oat_file.get() == nullptr /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-animated-vector-drawable-23.4.0_e295f74e431be9c2235019e0b34f4458989a4df7-classes.dex
05-17 15:03:28.479 1735-1735/com.parse.starter E/System: elements.add : /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-animated-vector-drawable-23.4.0_e295f74e431be9c2235019e0b34f4458989a4df7-classes.dex null /data/data/com.parse.starter/files/instant-run/dex/slice-com.android.support-animated-vector-drawable-23.4.0_e295f74e431be9c2235019e0b34f4458989a4df7-classes.dex
05-17 15:03:28.480 1735-1735/com.parse.starter I/art: jiangtaottt OpenDexFilesFromOat open_oat_file.get() == nullptr /data/data/com.parse.starter/files/instant-run/dex/slice-bolts-tasks-1.4.0_e967602cedb3cdf27c5916205188b8064fdde338-classes.dex
05-17 15:03:28.487 1735-1735/com.parse.starter E/System: elements.add : /data/data/com.parse.starter/files/instant-run/dex/slice-bolts-tasks-1.4.0_e967602cedb3cdf27c5916205188b8064fdde338-classes.dex null /data/data/com.parse.starter/files/instant-run/dex/slice-bolts-tasks-1.4.0_e967602cedb3cdf27c5916205188b8064fdde338-classes.dex
05-17 15:03:28.556 1735-1755/com.parse.starter W/art: Suspending all threads took: 8.438ms
05-17 15:03:28.559 1735-1755/com.parse.starter I/art: Background sticky concurrent mark sweep GC freed 1108(304KB) AllocSpace objects, 14(352KB) LOS objects, 33% free, 1419KB/2MB, paused 9.975ms total 21.194ms
05-17 15:03:28.613 1735-1735/com.parse.starter I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
05-17 15:03:28.763 1735-1750/com.parse.starter W/art: Suspending all threads took: 9.527ms
05-17 15:03:29.212 1735-1735/com.parse.starter D/wangcy9: setStatusIcon occur wrong theme!
05-17 15:03:29.361 1735-1735/com.parse.starter W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
05-17 15:03:29.627 1735-1735/com.parse.starter I/ViewRootImpl: CPU Rendering VSync enable = true
05-17 15:03:29.647 1735-2096/com.parse.starter D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-17 15:03:29.657 1735-1735/com.parse.starter D/Atlas: Validating map...
05-17 15:03:29.703 1735-2096/com.parse.starter I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8916_64_LA.BR.1.2.4_RB1__release_AU (Ibddc658e36)
OpenGL ES Shader Compiler Version: E031.25.03.04
Build Date: 09/08/15 Tue
Local Branch:
Remote Branch: quic/LA.BR.1.2.4_rb1.17
Local Patches: NONE
Reconstruct Branch: NOTHING
05-17 15:03:29.705 1735-2096/com.parse.starter I/OpenGLRenderer: Initialized EGL, version 1.4
05-17 15:03:29.722 1735-2096/com.parse.starter D/OpenGLRenderer: Enabling debug mode 0
05-17 15:03:29.733 1735-2096/com.parse.starter I/qdutils: PartialUpdate status: Disabled
05-17 15:03:29.733 1735-2096/com.parse.starter I/qdutils: Left Align: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Width Align: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Top Align: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Height Align: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Min ROI Width: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Min ROI Height: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Needs ROI Merge: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Dynamic Fps: Disabled
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Min Panel fps: 0
05-17 15:03:29.734 1735-2096/com.parse.starter I/qdutils: Max Panel fps: 0
05-17 15:03:29.854 1735-1735/com.parse.starter I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@702c751 time:367176349
05-17 15:03:31.168 1735-1735/com.parse.starter I/SaveInBackground: Failed.Errorcom.parse.ParseRequest$ParseRequestException: Invalid ACL.
StarterApplication.java
/*
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.parse.starter;
import android.app.Application;
import android.util.Log;
import com.parse.Parse;
import com.parse.ParseACL;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseUser;
import com.parse.SaveCallback;
public class StarterApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// Enable Local Datastore.
Parse.enableLocalDatastore(this);
// Add your initialization code here
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
.applicationId("appID")
.clientKey("ClientKey")
.server("url")
.build()
);
/*
ParseObject object = new ParseObject("ExampleObject");
object.put("myNumber", "123");
object.put("myString", "rob");
object.saveInBackground(new SaveCallback () {
@Override
public void done(ParseException ex) {
if (ex == null) {
Log.i("Parse Result", "Successful!");
} else {
Log.i("Parse Result", "Failed" + ex.toString());
}
}
});
*/
ParseUser.enableAutomaticUser();
ParseACL defaultACL = new ParseACL();
defaultACL.setPublicReadAccess(true);
defaultACL.setPublicWriteAccess(true);
ParseACL.setDefaultACL(defaultACL, true);
}
}
MainActivity.java
/*
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.parse.starter;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Switch;
import com.parse.LogInCallback;
import com.parse.Parse;
import com.parse.ParseAnalytics;
import com.parse.ParseAnonymousUtils;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseUser;
import com.parse.SaveCallback;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//create object = Score
ParseObject score = new ParseObject("Score");
score.put("username","michael");
score.put("score",40);
score.saveEventually(new SaveCallback() {
@Override
public void done(ParseException e) {
if(e == null){
Log.i("SaveInBackground","Successfully");
}else{
Log.i("SaveInBackground","Failed.Error"+e.toString());
}
}
});
ParseAnalytics.trackAppOpenedInBackground(getIntent());
}
}
最佳答案
请删除
ParseACL defaultACL = new ParseACL();
defaultACL.setPublicReadAccess(true);
defaultACL.setPublicWriteAccess(true);
ParseACL.setDefaultACL(defaultACL, true);
关于java - 解析: ACL Cannot send data to server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44005349/
只是想知道这些结构之间有什么区别(text、data、rodata、bss 等)在链接描述文件中: .data : { *(.data) } .data : { *(.data*) }
Data 定义为其核心功能之一 gfoldl : gfoldl :: (Data a) => (forall d b. Data d => c (d -> b) -> d -> c b)
以下之间有什么区别:data-sly-use、data-sly-resource、data-sly-include 和 数据-sly-模板?我正在阅读 Sightly AEM 上的文档,我非常困惑。
我有一个 Spring Boot、Spring Data JPA (hibernate) Web 应用程序,并且想引入文本搜索功能。 我理解以下内容 hibernate search 或 spring
我不知道我的代码有什么问题。我读了其他有同样问题的人的一些问题,但没有找到答案。当我尝试编译时出现以下错误: ||In function 'main':| |35|error: expected ex
我不太确定为什么会收到此错误或其含义。我的数据框称为“数据”。 library(dplyr) data %>% filter(Info==1, Male==1) %>% lm(CFL_
我一直在 GitHub 等更现代的网站上看到这些属性,它们似乎总是与自定义的弹出窗口一致,如 title 属性。 Option 1 Option 2 Option 3 Option 4 我在 HTML
如何用 iCloud Core Data 替换我现有的 Core Data?这是我的持久商店协调员: lazy var persistentStoreCoordinator: NSPersistent
我一直在 GitHub 等更现代的网站上看到这些属性,它们似乎总是与自定义的弹出窗口一致,如 title 属性。 Option 1 Option 2 Option 3 Option 4 我在 HTML
我正在通过 this project 在 Android 上摆弄 node.js ,我需要一种方法将 js 文件部署到私有(private)目录(以隐藏源代码,防止用户篡改),该目录也物理存在于文件系
大家好我有点沮丧,所以我希望得到一些帮助。我的项目在 SwiftUI 中。我想使用图像选择器将图像保存到 Core Data。我实现了让 ImagePicker 工作,但我正在努力转换 Image -
我有以下数据和代码: mydf grp categ condition value 1 A X P 2 2 B X P 5
我一直在努力解决这个问题,但我根本找不到任何解决问题的方法。希望这里有人可以提供帮助。 我正在尝试为具有以下结构的某些数据创建个人选择矩阵: # A tibble: 2,152 x 32 a
我了解 Data.Map.Lazy 和 Data.Map.Strict 是不同的。但是,当您导入 Data.Map 时,您究竟导入了什么:严格的、惰性的还是两者的组合? 最佳答案 懒人。看着docs
我正在开发一个 C 程序,用于从 BerkeleyDB DBTree 数据库中提取数据值与特定模式匹配的记录。我创建数据库,打开它,将键的 DBT 和数据的另一个 DBT 清零,将 DBT 标志设置为
所以我有以下成员(member)历史表 User_ID | Start date | End Date | Type(0-7) | ---------------------------
随着最近推出的包dataframe ,我认为是时候正确地对各种数据结构进行基准测试,并突出每种数据结构的优势。我不是每个人的不同优势的专家,所以我的问题是,我们应该如何对它们进行基准测试。 我尝试过的
我有来自 API 的数据,但无法将数组中的数据设置为 vue.js 中的 this.data这是来自 API 的数据(JSON) 你能告诉我这个语法吗 {"id":1613, "name_org":"
在 Vue.js到目前为止,我已经找到了两种定义数据的方法:data: {} 和 data() { return; }. data: { defaultLayout: 'default' }
我正在研究Spring Data Rest Services,并在自定义拦截器中遇到一些问题。之前我使用spring-data-rest-webmvc 2.2.0并以以下方式添加了拦截器。 publi
我是一名优秀的程序员,十分优秀!