我的聚合物项目遇到了一些麻烦,我的代码在IE,Edge中不起作用,如果我包含的话,甚至不在chrome中<!doctype html>.这是我的代码:
<!doctype html>
<html>
<head>
<link rel="import" href="bower_components/paper-header-panel/paper-header-panel.html">
<link rel="import" href="bower_components/paper-card/paper-card.html">
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link rel="import" href="bower_components/polymer/polymer.html">
</head>
<body>
<paper-header-panel mode="standard" id>
<paper-toolbar style="background-color: some-color">
<h1>Blah</h1>
</paper-toolbar>
<div id="content">
<div class="center2">
<h3>Blah Blah Blah<span id="orange">Blah Blah Blah</span></h3>
</div>
<paper-card heading="Blah Blah Blah" id="main">
<div class="card-content">
</div>
</paper-card>
<paper-card heading="Blah Blah Blah" id="main">
<div class="card-content">
<img src="img.png" height="200px" id="img"/>
</br>
Blah Blah Blah
</div>
</paper-card>
</div>
</paper-header-panel>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
任何帮助都将受到重视.谢谢!
在添加JSON.simple并启用MultiDex并获得以下错误后,我在android studio中遇到问题:
错误:任务':app:packageAllDebugClassesForMultiDex'的执行失败.java.util.zip.ZipException:重复条目:org/hamcrest/BaseDescription.class
这是我的build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.MildlyGoodApps.EffortlessDescriptions"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
compile 'com.android.support:multidex:1.0.0'
}
Run Code Online (Sandbox Code Playgroud)
谢谢.
改compile 'com.googlecode.json-simple:json-simple:1.1.1'到compile('com.googlecode.json-simple:json-simple:1.1.1'){ exclude group: 'org.hamcrest', module: 'hamcrest-core' }.
谢谢Kane O'Riley!
在我的网站上,我希望它将所有错误500错误重定向到/500.html.截至目前,一些页面显示GET
http://localhost/ [HTTP/1.0 500 Internal Server Error 1ms]在Developer Tools中.我试过通过编辑实现这个/etc/apache2/sites-enabled/000-default.conf.该文件如下所示:
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive …Run Code Online (Sandbox Code Playgroud) 我制作了一个使用JSON Google图片搜索API来提供图片的Android应用,但我注意到谷歌已停止支持它.我还发现维基数据有时会在某些项目上提供图像属性,但我似乎无法使用维基数据API获取图像的URL位置.
有没有办法从维基数据中的项目获取图像URL属性?
android ×2
.htaccess ×1
apache ×1
build ×1
doctype ×1
gradle ×1
html ×1
java ×1
json-simple ×1
polymer ×1
polymer-1.0 ×1
wikidata-api ×1