小编Asi*_*han的帖子

Android Studio Gradle项目"无法启动VM的守护进程/初始化"

Android Studio(Beta)0.8.4
操作系统版本:Windows 8
Java JRE/JDK版本:1.8.0_11

Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.12/userguide/gradle_daemon.html
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Run Code Online (Sandbox Code Playgroud)

java beta android jvm daemon

75
推荐指数
10
解决办法
18万
查看次数

从iOS上的自托管网址下载并安装ipa

我需要ipa直接从URL 下载并安装.

我试过这个:

NSURL *url = [NSURL URLWithString:@"https://myWeb.com/test.ipa"];
[[UIApplication sharedApplication] openURL:url];
Run Code Online (Sandbox Code Playgroud)

该应用程序启动Safari但出现此消息:

错误消息

可能吗?

ios ipa

44
推荐指数
3
解决办法
13万
查看次数

如何在Windows上设置和克隆远程git仓库?

有人知道如何从Windows服务器上的git远程存储库中检出,克隆或获取项目或代码吗?

存储库IP是:xxx.xx.xxx.xx,源文件目录是c:\repos\project.git

我习惯了SUSE Linux终端的命令行界面.我尝试了同样的方法,但它总是回复

fatal: ''/repo/project.git'' does not appear to be a git repository
fatal: Could not read from remote repository..
Please make sure you have the correct access rights
Run Code Online (Sandbox Code Playgroud)

谁能告诉我如何设置和克隆?

linux windows git ssh

20
推荐指数
1
解决办法
4万
查看次数

打字稿中函数的':'和'=>之间有什么区别?

让我们说我们使用这样的显式类型定义一个函数,

var func : (arg1: string, arg2: number) => boolean;
Run Code Online (Sandbox Code Playgroud)

你可以看到我们应该在这里使用'=>',但我们不能在函数decleration中使用这个胖箭头.

func = function name(arg1: string, arg2: number) : boolean {return true;}
Run Code Online (Sandbox Code Playgroud)

但是在lambda函数中我们使用'=>'这个胖箭为什么?

var lambdaFunc = (arg1: string, arg2: number) => true;
Run Code Online (Sandbox Code Playgroud)

在函数类型接口中为什么我们使用它,例如,我们使用':'冒号.

interface SearchFunc {
(source: string, subString: string): boolean;
}
Run Code Online (Sandbox Code Playgroud)

这整个混乱是什么意思?

typescript

13
推荐指数
2
解决办法
3861
查看次数

GENY MOTION虚拟引擎未找到ERROR

我有一段时间有这个问题,我在互联网上搜索了很多,

问题是,当我在android geny运动模拟器中模拟hybird应用程序时,它说'找不到虚拟化引擎'.

我在互联网上找到的是在Windows功能中启用Hyper-V并重新安装VB主机网络适配器,但注意到我的工作.Virtual Box也没有显示任何主机网络.

当我在VBox中创建任何主机网络时,它不会重新打开VBox.

  • GenyMotion版本2.5.3.
  • VBox版本5.
  • OS Windows 10专业版已更新.(问题在其他操作系统上是一样的)

附图

virtualbox hyper-v hybrid-mobile-app genymotion windows-10

7
推荐指数
1
解决办法
1万
查看次数

如何在从SlideMenuViewController实例化的ViewControllers中打开TabBarController

我希望在所有ViewControllers中都有tabBar.我已经实现了SWRevealViewController,它有两个视图控制器,一个是TabBarController,另一个是TableViewController,我希望在我的所有ViewControllers中都有相同的tabBar,来自TableViewController的Segues.

在此输入图像描述

objective-c uitabbarcontroller ios swift

7
推荐指数
1
解决办法
240
查看次数

如何将 D3.js 与 Renderer API 与 Angular 2 集成

我已经成功地将 Angular 2(Alpha 44)与 D3.js 集成:

<html>
  <head>
    <title>Angular 2 QuickStart</title>
    <script src="../node_modules/systemjs/dist/system.src.js"></script>
    <script src="../node_modules/angular2/bundles/angular2.dev.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
    <script>
      System.config({packages: {'app': {defaultExtension: 'js'}}});
      System.import('app/app');
    </script>
  </head>
  <body>
    <my-app>Loading...</my-app>
  </body>
</html>
Run Code Online (Sandbox Code Playgroud)

应用程序.js:

/// <reference path="./../../typings/tsd.d.ts" />

import {Component, bootstrap, ElementRef} from 'angular2/angular2';

@Component({
  selector: 'my-app',
  template: '<h1>D3.js Integrated if background is yellow</h1>',
  providers: [ElementRef]
})
class AppComponent { 
  elementRef: ElementRef;

  constructor(elementRef: ElementRef) {
    this.elementRef = elementRef;
  }

  afterViewInit(){
    console.log("afterViewInit() called");
    d3.select(this.elementRef.nativeElement).select("h1").style("background-color", "yellow");
  }
}
bootstrap(AppComponent);
Run Code Online (Sandbox Code Playgroud)

一切正常。但是 Angular 2 文档ElementRef说明如下: …

javascript d3.js angular

5
推荐指数
1
解决办法
1495
查看次数

在打字稿中,拥有像“{ [x: string]: any }”这样的对象属性意味着什么?

var x: { id: number, [x: string]: any }; // what does second property means?

x = { id: 1, fullname: "Zia" , 32: "Khan" }; // no errors in VS Code v0.9.1
Run Code Online (Sandbox Code Playgroud)

如果第二个属性是Array类型并且它的索引string类型并且返回值any类型,那么它如何接受索引number类型并且valuestring类型?

打字稿版本:1.6.2

Visual Studio 代码版本:0.9.1

javascript types typescript visual-studio-code

3
推荐指数
2
解决办法
3189
查看次数

如何在 iOS 模拟器中模拟同时触摸

我目前的屏幕上有两个按钮,一个在左侧,一个在右侧,我想知道是否有办法iOS Simulator模拟同时按下两个按钮。我尝试按下? Alt模拟器,结果出现了两个圆圈。我可以将一个圆圈放置在左侧的第一个按钮上,但是我不确定如何将下一个圆圈放置在右侧的按钮上。

ios ios-simulator

2
推荐指数
1
解决办法
735
查看次数