我尝试为Android构建一个离子应用程序,我有这个错误:
What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.android.support:support-v4:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
Required by:
:android:unspecified
Run Code Online (Sandbox Code Playgroud)
安装Android支持库和Android支持存储库.
谢谢您帮忙
编辑:
我尝试更新cordova和cordova-cli,但它没有用.
我正在用vueJS编写一个项目.我有一个包含以下代码的组件:
import ProjectsStore from './../stores/ProjectsStore.js';
export default {
store: ProjectsStore,
data () {
return {
loading: false,
randomProject: null,
}
},
computed: {
projects () {
return this.$store.state.projects;
},
commits () {
return this.$store.state.commits;
}
},
methods : {
setCommit : ()=> {
// code here
}
},
watch: {
projects: (value) => {
this.setCommit()
}
},
mounted () {
this.$store.dispatch('loadProjectsList')
}
}
Run Code Online (Sandbox Code Playgroud)
我在项目中观察回调时出现以下错误:
this.setCommit is not a function
Run Code Online (Sandbox Code Playgroud)
我放入一个console.log (this)回调函数,它显示一个默认对象而不是VueComponent.
我做错了什么?
谢谢你的帮助.
我正在研究python模块,我在Github上托管它.
对于测试,我尝试安装它pip.
每次我从运行中收到错误:
pip install git+git://github.com/amiceli/i2c-module
Run Code Online (Sandbox Code Playgroud)
并输出:
Collecting git+git://github.com/amiceli/i2c-module
Cloning git://github.com/amiceli/i2c-module to /tmp/pip-HbjLru-build
No files/directories in /tmp/pip-HbjLru-build/pip-egg-info (from PKG-INFO)
Run Code Online (Sandbox Code Playgroud)
要么
pip install https://github.com/amiceli/i2c-module
Run Code Online (Sandbox Code Playgroud)
输出:
Collecting https://github.com/amiceli/i2c-module
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading https://github.com/amiceli/i2c-module
- 36kB 328kB/s
Cannot unpack file /tmp/pip-3Qo8KK-unpack/i2c-module (downloaded from /tmp/pip-KnZ537-build, content-type: text/html; charset=utf-8); cannot detect …Run Code Online (Sandbox Code Playgroud) 我有一个由 backgrid 生成的网格。
而且我想限制文本长度,每个 td 必须在一行上。
td 上的宽度属性无效。
谢谢你的帮助。

我正在尝试为ngFor.
每个项目必须在前一个项目之后几毫秒进行动画处理。
这是我的组件代码:
@Component({
selector: 'bookmark-list',
templateUrl: './bookmark.list.component.html',
providers: [BookmarkService],
styleUrls: ['./bookmark.list.component.less'],
animations: [
trigger('myAwesomeAnimation', [
transition(':enter', [
style({transform: 'scale(0.8)',}),
animate('1.5s ease-out', style({transform: 'scale(1)',})),
]),
])
]
})
Run Code Online (Sandbox Code Playgroud)
以及它的 html 标记:
<div class="col-sm-6 col-md-4 col-lg-3" *ngFor="let bookmark of bookmarks | bookmarkPipe:search">
<div [@myAwesomeAnimation]='"large"'>
<bookmark-item [bookmark]="bookmark"></bookmark-item>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
有没有办法将延迟作为角度转换的参数传递?
编辑
根据 Oluwafemi Sule 的回答,交错是解决方案:
transition('* => *', [
query(':leave', [
stagger(
100, [
animate('0s ease-in-out', style({
transform: 'scale(0.8)'
}))
]
)
], {optional: true}),
query(':enter', [
style({
transform: 'scale(0.8)', …Run Code Online (Sandbox Code Playgroud)