我知道我的这个问题已被多次询问,我确实按照大部分答案,但没有一个帮助我.所以这是我的问题,每当我同步我的项目时它总是失败.以下是gradle控制台的外观:
执行任务:[:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies]
按需配置是一项孵化功能.增量java编译是一个孵化功能.:app:preBuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest:app:preReleaseBuild UP-TO-DATE:app:prepareComAndroidSupportAnimatedVectorDrawable2420Library UP-TO-DATE:app:prepareComAndroidSupportAppcompatV72420Library UP-TO-DATE:应用:prepareComAndroidSupportDesign2420Library UP-TO-DATE:应用:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE:应用:prepareComAndroidSupportRecyclerviewV72420Library UP-TO-DATE:应用:prepareComAndroidSupportSupportCompat2420Library UP-TO-DATE:应用:prepareComAndroidSupportSupportCoreUi2420Library UP-TO-DATE:应用:prepareComAndroidSupportSupportCoreUtils2420Library UP-至今:app:prepareComAndroidSupportSupportFragment2420Library UP-TO-DATE:app:prepareComAndroidSupportSupportMediaCompat2420Library UP-TO-DATE:app:prepareComAndroidSupportSupportV42420Library UP-TO-DATE:app:prepareComAndroidSupportSupportVectorDrawable2420Library UP-TO-DATE:app:prepareComGoogleAndroidGmsPlayServices940Library UP-TO-DATE:app :prepareComGoogleAndroidG msPlayServicesAds940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesAdsLite940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesAnalytics940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesAppindexing940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesAppinvite940Library UP-TO-日期:应用:prepareComGoogleAndroidGmsPlayServicesAuth940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesAuthBase940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesBase940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesBasement940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesCast940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesCastFramework940Library最新消息:app:prepareComGoogleAndroidGmsPlayServicesClearcut940Library UP-TO-DATE:app:prepareComGoogleAndroidGmsPlayServicesContextmanager940Library UP-TO-DATE:app :prepareComGoogleAndroidGmsPlayServicesDrive940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesFitness940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesGames940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesGass940Library UP-TO-DATE:应用:prepareComGoogleAndroidGmsPlayServicesGcm940Library UP-TO-DATE:应用程序:prepareComGoogleAndroidGmsPlayServicesIdentity940Library失败:建立因例外而失败.
出了什么问题:java.lang.NullPointerException(没有错误消息)
尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行以获取更多日志输出.
建筑失败
总时间:7.518秒
这些是我的依赖
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.google.android.gms:play-services:9.4.0'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-location:9.4.0'
compile 'com.google.android.gms:play-services-appindexing:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.2.0'
compile 'com.google.firebase:firebase-database:9.0.2'
compile 'com.firebase:firebase-client-android:2.4.0'
compile 'com.google.firebase:firebase-core:9.4.0' …Run Code Online (Sandbox Code Playgroud) 我想在Windows上开始使用Docker.我的机器有4GB内存和1.9GHz - 2.5GHz Intel i5处理器,运行Windows 10 Pro x64.我知道这些并不是强大的规格,但我原以为我应该可以运行Docker?
但是,下载了Docker后,我收到错误消息:
没有足够的内存来启动docker
我已经看到各种论坛帖子和github问题,并遵循我可以看到的所有建议,例如修改Docker中的设置,我试过这些:
他们还提到了更改Hyper-V VM的设置,但是,这似乎被删除并在每次尝试启动时使用Docker指定的设置重新创建.我尝试了2048MB,1792MB,1536MB,1280MB和1024MB的RAM,所有这些都失败了.
我还可以做些什么?当然我可以在我的机器上以某种形式运行docker?注意:我已关闭所有非必要的后台应用程序.对于什么似乎是一个相当普遍的问题似乎没有很多其他建议,其中给定的解决方案不起作用?
我使用Google Forms创建了一个联系页面。我想在此表单中添加一个占位符。
在询问之前,我在谷歌上搜索了很多,但没有成功。我能做的唯一方法是通过分配访问Chrome 浏览器placeholder="some_name"中的开发人员工具,但这没有用,因为它只是临时的。
我该如何实现这一目标?
因此,我有一个按钮可以在同一页面中提供指向模式的直接链接。
这是按钮和网址
<a data-toggle="modal"
href="main_user.php?user_id=<?php echo $user['user_id']; ?>#myModal"
class="btn btn-warning">
Run Code Online (Sandbox Code Playgroud)
(我试着重复$user_id之前的内容#modal)是吗?
单击按钮后,将出现模式。这是带有形式的模态。
<form class="form-login" action="action/doEditUserStatus.php" method="post">
<div class="login-wrap">
<div class="changestatus">
<p>Banning or Activing User Status</p></div>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-success active">
<input type="radio" name="options" value="1" autocomplete="off" checked> Actived
</label>
<label class="btn btn-primary">
<input type="radio" name="options" value="2" autocomplete="off"> Banned
</label>
</div>
</div>
<div class="modal-footer">
<button data-dismiss="modal" class="btn btn-default" type="button">Cancel</button>
<button class="btn btn-theme" name="modalSubmit" type="submit">Submit</button>
</div>
</form>
Run Code Online (Sandbox Code Playgroud)
然后我尝试提交模态表单,但该操作无法读取$user_id我之前放置的内容#modal。
更新:表代码:
这是我的桌子:
<tr class="success">
<th …Run Code Online (Sandbox Code Playgroud) android ×1
browser ×1
build.gradle ×1
docker ×1
forms ×1
google-forms ×1
gradle ×1
html ×1
hyper-v ×1
php ×1
placeholder ×1
windows ×1