AndroidX로 migrate
개요
방치되어 있는 앱을 AndroidX 대응했을 때의 순서 메모입니다.
곤란한 일도 없고 완성되었으므로 큰 일 쓰고 있지 않습니다만 참고까지.
※ Android Studio 3.2 이상이 필요합니다.
 여기에 공식 절차 있습니다.
 환경
macOS Catalina - 10.15.1
Android Studio - 3.5.2
 절차
macOS Catalina - 10.15.1
Android Studio - 3.5.2
절차




The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.
-    implementation 'com.jakewharton:butterknife:9.0.0'
-    annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
+    implementation 'com.jakewharton:butterknife:10.0.0'
+    annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
보충
Do Refactor를 사용하면 gradle.properties에 다음 두 줄이 추가됩니다.
android.useAndroidX=true
android.enableJetifier=true
작업중 뭔가 인터럽트가 들어가는 등으로 이전 상태로 하고 싶을 때는 이 2행도 지울 필요가 있습니다.
 참고
 The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. for androidx
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(AndroidX로 migrate), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/koichi-ozaki/items/8489f1fca6426f5846a0
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
android.useAndroidX=true
android.enableJetifier=true
The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. for androidx
Reference
이 문제에 관하여(AndroidX로 migrate), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/koichi-ozaki/items/8489f1fca6426f5846a0텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)