小编Moo*_*stt的帖子

Android Studio 1.0RC4 Gradle构建错误

我刚刚下载了Android Studio 1.0RC4,我无法构建任何项目,甚至是新创建的项目.

我得到的错误是:

错误:无法使用Gradle分发' https://services.gradle.org/distributions/gradle-2.2.1-all.zip ' 运行构建操作.

我能够从浏览器下载zip,但它不能在AS上运行.这是我的build.gradle文件:

// Top-level build file where you can add configuration options common to all sub-projects/modules.


buildscript {

    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0-rc1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
Run Code Online (Sandbox Code Playgroud)

模块构建文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 19
    buildToolsVersion "19.1.0"

    defaultConfig {
        applicationId "simple.com.car10"
        minSdkVersion 14
        targetSdkVersion 19
        versionCode 1 …
Run Code Online (Sandbox Code Playgroud)

android android-studio android-gradle-plugin

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

如何知道我是否在C#中赢了彩票

所以,我正在努力检查是否能自动赢得彩票.

这个游戏我玩的有25个号码,你可以选择15个.

如果你打15个数字,你就赢了!(它不需要在序列中)

我有一个列出所有游戏的名单:'TodosJogos'和我的赌博叫做'Jogado'

现在,我正在这样做:(我认为这是一个可怕的)

 private void VerificaVitoria(Jogo Jogado, string TipoJogo)
        {
            bool Ganhou;
            List<Jogo> LstClassificadas = new List<Jogo>();

            LstClassificadas = TodosJogos.Where(x => x.N1 == Jogado.N1 ||
                x.N1 == Jogado.N2 ||
                x.N1 == Jogado.N3 ||
                x.N1 == Jogado.N4 ||
                x.N1 == Jogado.N5 ||
                x.N1 == Jogado.N6 ||
                x.N1 == Jogado.N7 ||
                x.N1 == Jogado.N8 ||
                x.N1 == Jogado.N9 ||
                x.N1 == Jogado.N10 ||
                x.N1 == Jogado.N11 ||
                x.N1 == Jogado.N12 ||
                x.N1 == Jogado.N13 ||
                x.N1 == Jogado.N14 ||
                x.N1 …
Run Code Online (Sandbox Code Playgroud)

c# linq lambda

3
推荐指数
1
解决办法
688
查看次数

.net实体框架与oracle 11g

我正在使用oracle提供程序的实体框架(Oracle.ManagedDataAccessDTC)

从visual studio可以正常运行一切,但是当我将它发布到IIS时,我收到一个连接错误异常.

这是我的webconfig女巫在visual studio上运行得很好:

<?xml version="1.0"?>
<configuration>

    <system.web>
        <compilation debug="true" targetFramework="4.0" />
    </system.web>
  <connectionStrings>
    <add name="Entities" connectionString="metadata=res://*/Model.Model.csdl|
         res://*/Model.Model.ssdl|
         res://*/Model.Model.msl;
         provider=Oracle.ManagedDataAccess.Client;
         provider connection string='DATA SOURCE=ORCL;PASSWORD=giovanni;USER ID=DB_ES'" providerName="System.Data.EntityClient" />
  </connectionStrings>
</configuration>
Run Code Online (Sandbox Code Playgroud)

这是我在IIS上遇到的错误:

Server Error in '/EA' Application.

    ORA-12154: TNS:não foi possível resolver o identificador de conexão especificado

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: OracleInternal.Network.NetworkException: …
Run Code Online (Sandbox Code Playgroud)

c# oracle entity-framework oracle11g

3
推荐指数
1
解决办法
9409
查看次数

何时使用#符号在JavaScript中获取对象

有时我需要得到这样的对象:

 var object = document.getElementById('ObjectName');
Run Code Online (Sandbox Code Playgroud)

有时像这样:

 var object = document.getElementById('#ObjectName');
Run Code Online (Sandbox Code Playgroud)

他们之间有什么区别?

html javascript asp.net

0
推荐指数
3
解决办法
105
查看次数

为什么ArrayList <Integer>包含不起作用?

我有:

ArrayList<Integer> onlyOne = new ArrayList<Integer>();
onlyOne.add(Integer.valueOf(3));

ArrayList<Integer> two = new ArrayList<Integer>();
two.add(Integer.valueOf(3));
two.add(Integer.valueOf(4));

boolean check = two.contains(onlyOne);
Run Code Online (Sandbox Code Playgroud)

但这总是返回假,为什么?

java arraylist

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