我正在使用与Android Studio捆绑在一起的Gradle构建系统.到目前为止,我能够使用存储在我的项目结构中的依赖项构建多项目设置.我现在想使用maven依赖,但无济于事.我写了一个非常简单的build.gradle文件总是失败:
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
}
apply plugin: 'android'
dependencies {
compile 'com.google.android:support-v4:r7'
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 16
}
}
Run Code Online (Sandbox Code Playgroud)
以下消息:
* What went wrong:
A problem occurred configuring project ':absabs'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':absabs:compile'.
> Could not find com.google.android:support-v4:r7.
Required by:
absabs:absabs:unspecified
....
Caused by: org.gradle.api.internal.artifacts.ivyservice.ModuleVersionNotFoundException: Could …Run Code Online (Sandbox Code Playgroud) 我有一个活动,其大小不会填满整个屏幕.它的背景是暗淡的.我想点击一下按钮进入全屏模式.使用Window LayoutParams可以正常播放.但在调整大小期间,我想要摆脱动画.
使用Window.setWindowAnimations(int resId)仅在窗口出现或消失时影响动画,而不是在调整大小时.如何修改此动画?
谢谢
自从我切换到SDK v4后,我在LogCat中注意到了这一点:
W/GAV3:线程[main,5,main]:int配置名称无法识别:ga_dispatchPeriod W/GAV3:Thread [main,5,main]:字符串配置名称无法识别:ga_appVersion
所有其他参数都很好,但那些似乎真的被忽略了.有任何想法吗 ?
谢谢.