2014-12-02 1 views
3

인터넷에서 집중적으로 검색 한 후 내 문제에 대한 답을 찾을 수 없습니다. 다음과 같이Android Studio RC 1 업데이트 후 컴파일 시마다 컴파일되지 않음

Error:String index out of range: -1 

내 빌드 스크립트는 다음과 같습니다 :

apply plugin: 'com.android.application' 

repositories { 
    jcenter() 
    flatDir { 
     dirs 'libs' 
    } 
} 

android { 
    compileSdkVersion 21 
    buildToolsVersion '21.1.1' 

    defaultConfig { 
     applicationId 'myappidhere' 
     minSdkVersion 14 
     targetSdkVersion 21 
     versionCode 1 
     versionName '1.0' 
    } 
    lintOptions { 
     abortOnError false 
    } 

    android { 
     sourceSets { 
      main { 
       manifest.srcFile 'src/main/AndroidManifest.xml' 
       java.srcDirs = ['src/main/java', 'src/main/java-gen'] 
       res.srcDirs = ['src/main/res'] 
      } 
     } 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile 'com.android.support:appcompat-v7:21.0.2' 
    compile 'com.android.support:support-v4:21.0.2' 
    compile 'com.android.support:recyclerview-v7:21.0.0' 
    compile 'com.jakewharton:butterknife:6.0.0' 
    compile 'com.jakewharton.timber:timber:2.5.0' 
    compile 'de.greenrobot:greendao:1.3.7' 
    compile 'com.rengwuxian.materialedittext:library:1.5.0' 
    //local libs 
    compile(name: 'utilsaaa1', ext: 'aar') 
    compile(name: 'pixlui_1_0_5_fork', ext: 'aar') 
    compile project(':Secure_preferences_lib') 
} 

을 Gradle을 로그 오류를 읽은 후, 나는 RC1에 베타에서 안드로이드 스튜디오를 업그레이드 한 후, Gradle을 빌드 스크립트는 다음 오류로 인해 작동이 중지 문제가되는 행은 다음과 같습니다.

compile(name: 'utilsaaa1', ext: 'aar') 
     compile(name: 'pixlui_1_0_5_fork', ext: 'aar') 

두 파일 모두 폴더 안에 있습니다. 이 문제를 해결할 수있는 방법이 없으므로 도움을 받으실 수 있습니다.

EDIT1 : idea.log

Caused by: org.gradle.api.IllegalDependencyNotation: Supplied String module notation 'utilsaaa1' is invalid. Example notations: 'org.gradle:gradle-core:2.2', 'org.mockito:mockito-core:1.9.5:javadoc'. 

답변

1

변경 :

compile(name: 'utilsaaa1', ext: 'aar') 

사람 :

compile 'myappidhere:utilsaaa1:[email protected]' 
+0

그래, 나를 위해 작품이다, 많은 감사합니다! –