바코드 스캐너 앱을 개발 중입니다.Android Build.gradle에서 컴파일 할 구현을 대체하는 방법. (Android Studio 2.3.3)
URL : (: 응용 프로그램 모듈)하지만 난이 라이브러리의 교체에 구현를 사용하도록 제안 발견 난 항상 build.gradle에서 컴파일을 사용 2.3.3
내 Android Studio 버전입니다 을 컴파일하십시오.
나는가 안드로이드 스튜디오 3.0 구현로 대체됩니다 컴파일 인터넷 을 통해 검색하지만 난 안드로이드 스튜디오 2.3.3에서이 라이브러리를 사용합니다.
예.
dependencies {
implementation 'com.budiyev.android:code-scanner:1.5.7'
}
나는 나의 Gradle을 그 보여주는 오류에 넣고 때.
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:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.budiyev.android:code-scanner:1.5.7' // HERE
testCompile 'junit:junit:4.12'
}
오류는 다음과 같습니다
Error:Failed to resolve: com.android.support:support-annotations:26.1.0
Install Repository and sync project
Show in Project Structure dialog
2.3.3
말을 죄송합니다, 아무것도 같은 오류 메시지가 발생하지 . 나는 build.gradle compile 'com.budiyev.android:code-scanner:1.5.7'에서 컴파일을 대체했습니다. –
@Abhishekkumar https://github.com/yuriy-budiyev/code-scanner에 따라 '구현'com.budiyev.android : code-scanner : 1.5.7 '을 사용해야합니다. –
@IntelliJAmiya right –