카테고리 없음
gradle 명령어
newpolaris
2020. 8. 2. 14:33
$ gradle task assembleDebug
$ adb shell am start -n "com.example.app1/com.example.app1.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
참고로 아래문제는 블로그 참조하면 사라짐
Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed
https://wonpaper.tistory.com/205
build.gradle (app)
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == "androidx.appcompat") {
if (!requested.name.startsWith("multidex")) {
details.useVersion "1.+"
}
}
}
}