当我运行代码时,表单第一次被填充,结果显示良好。但是当我刷新页面或点击提交时,我收到此错误:
import com.android.builder.core.DefaultManifestParser
apply plugin: 'com.android.application'
apply from: '../config/quality/quality.gradle'
android {
compileSdkVersion 22
buildToolsVersion '25.0.3'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
defaultConfig {
applicationId "de.we.acaldav"
minSdkVersion 14
targetSdkVersion 20
multiDexEnabled true
def manifestParser = new DefaultManifestParser()
versionName = manifestParser.getVersionName(android.sourceSets.main.manifest.srcFile)
}
signingConfigs {
//noinspection GroovyMissingReturnStatement
release {
if (project.hasProperty('myKeyAlias') &&
project.hasProperty('myStoreFile') &&
project.hasProperty('myStorePassword') &&
project.hasProperty('myKeyPassword')) {
keyAlias = myKeyAlias
storeFile = file(myStoreFile)
storePassword = myStorePassword
keyPassword = myKeyPassword
}
}
}
buildTypes {
release {
minifyEnabled true
signingConfig signingConfigs.release
proguardFile 'proguard-project.txt'
}
debug {
//noinspection GroovyAssignabilityCheck
applicationIdSuffix = ".debug"
//noinspection GroovyAssignabilityCheck
versionNameSuffix = "-DEBUG"
}
//noinspection GroovyAssignabilityCheck
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(output.outputFile.parent, output.outputFile.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
}
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile 'com.android.support:support-v4:22.0.0'
compile 'backport-util-concurrent:backport-util-concurrent:3.1'
compile 'commons-codec:commons-codec:1.10'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'org.mnode.ical4j:ical4j:1.0.6'
repositories {
mavenCentral()
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}
该计划的代码:
url = "http://www.dell.com/en-us/learn/assets/shared-content~data-sheets~en/documents~2016-v5-systems-oem-10022706.pdf"
response = requests.get(url)
print response.status_code
` 任何建议都会非常感激。
答案 0 :(得分:0)
db.open(function(err, db) {
let collection = db.collection("Transaction");
collection.insertOne(Transaction, function(err, result1) {
assert.equal(null, err);
res.setHeader('Content-Type', 'application/json');
res.send(JSON.stringify({addressEvent,addressFrom,addressTo,amount}));
});
db.close();
});
尝试上面的代码,你有点迷失在回调地狱,在数据库打开之前发送标题。