2014-12-04 1 views
0

build.gradle을 androidTestCompile 종속성과 동기화하는 동안 myproject.iml 파일이 업데이트되지 않습니다. 내가 맛 Gradle Android 빌드 시스템과의 테스트 종속성으로 인해 Android Studio * .iml 파일이 업데이트되지 않습니다.

productFlavors { 
    pro { 
     applicationId = 'com.myapp.pro' 
     testApplicationId 'com.myapp.pro.test' 
    } 
    free { 
     applicationId = 'com.myapp.free' 
     testApplicationId 'com.myapp.free.test' 
    } 
} 

그러나 IML 파일, 내가 기다리고 있었다에게 사용

dependencies { 

androidTestCompile 'org.assertj:assertj-core:1.7.0' 
} 

: 내 build.gradle에서 볼 수 있듯이

enter image description here

, 내 종속성이 이 항목은 있지만 아무 것도 없습니다.

<orderEntry type="library" exported="" scope="TEST" name="assertj-core-1.7" level="project" /> 

나는 안드로이드 스튜디오 1.0 RC 2, 최근 플러그인 com.android.tools.build:gradle:1.0.0-rc2를 사용

편집 :

나는 맛을 제거 할 경우 내 build.gradle에서 차단 , iml은 Android Studio에서 올바르게 생성됩니다.

+0

이 같은 문제를 얻었다 버그를 열어 새로운 패널이 나타납니다 당신은 당신의 변형을 할 수 선택합니다 android studio : https://code.google.com/p/android/issues/detail?id=83077 – tknell

답변

0

Android Studio에서 올바른 변형을 선택해야하며 iml 파일이 업데이트됩니다. 당신이 버튼을 "변형 빌드"그것을 클릭 참조 왼쪽 아래에

On the bottom left, you see "Build Variants" button, click on it, a new panel will appear and you will able to choose your variant

,

+0

Android Studio에서 변형을 정확히 선택한 부분은 무엇입니까? 위에서 설명한 것과 동일한 문제가 있습니다. – tknell

관련 문제