反编译apk导入android studio

  1. 错误一: Error: Program type already present: android.support.v4.app.ActivityCompat
    在这里插入图片描述
    修改build.gradle,将代码中的import去掉。重新用快捷键引用
    反编译apk导入android studio_第1张图片

  2. 错误: Error: Cannot fit requested classes in a single dex file (# methods: 67859 > 65536) 在这里插入图片描述
    添加:

multiDexEnabled true

反编译apk导入android studio_第2张图片
3. (未解决)错误: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

03-27 14:38:34.694 4834-5031/system_process W/ServiceWatcher: com.google.android.location not found
03-27 14:38:34.713 4834-5031/system_process W/LocationManagerService: no network location provider found
03-27 14:38:34.723 4834-4835/system_process D/dalvikvm: GC_CONCURRENT freed 330K, 7% free 5991K/6380K, paused 5ms+49ms, total 164ms
03-27 14:38:34.737 4834-5031/system_process W/ServiceWatcher: com.google.android.location not found
03-27 14:38:34.741 5111-5111/? I/test: oncreat !!!
03-27 14:38:34.749 4834-5034/system_process W/ThrottleService: unable to find stats for iface rmnet0
03-27 14:38:34.751 1260-1795/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
03-27 14:38:34.768 5111-5111/? D/AndroidRuntime: Shutting down VM
03-27 14:38:34.768 5111-5111/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40c05930)
03-27 14:38:34.782 5111-5111/? E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.changhong.otslauncher/com.changhong.doplauncher.Launcher}: java.lang.ClassNotFoundException: Didn't find class "com.changhong.doplauncher.Launcher" on path: /data/app/com.changhong.otslauncher-1.apk
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
        at android.app.ActivityThread.access$600(ActivityThread.java:141)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5041)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.changhong.doplauncher.Launcher" on path: /data/app/com.changhong.otslauncher-1.apk
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
        at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) 
        at android.app.ActivityThread.access$600(ActivityThread.java:141) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:137) 
        at android.app.ActivityThread.main(ActivityThread.java:5041) 
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:511) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 
        at dalvik.system.NativeStart.main(Native Method) 
03-27 14:38:34.804 4834-5031/system_process I/ActivityManager: Start proc com.android.location.fused for service com.android.location.fused/.FusedLocationService: pid=5141 uid=10012 gids={50012, 1028}
03-27 14:38:34.821 5141-5141/? E/Trace: error opening trace file: No such file or directory (2)
03-27 14:38:34.828 4834-5031/system_process W/ServiceWatcher: com.google.android.location not found
03-27 14:38:34.846 4834-5031/system_process E/LocationManagerService: no geocoder provider found
03-27 14:38:34.847 4834-5102/system_process W/ActivityManager:   Force finishing activity com.changhong.otslauncher/com.changhong.doplauncher.Launcher
03-27 14:38:34.850 4834-5102/system_process I/ActivityManager: Clearing package preferred activities from com.changhong.otslauncher
03-27 14:38:34.928 5024-5024/com.huawei.inputmethod.remote D/RemoteInputService: onCreate
03-27 14:38:34.928 5024-5024/com.huawei.inputmethod.remote D/RemoteSocketServer: onCreate

反编译apk导入android studio_第3张图片
4. 错误: java中引用资源文件的数字未修改完全,将会直接崩溃。
5. 错误: Cause: archive is not a ZIP archive
在这里插入图片描述
6. 错误: Error: Program type already present: android.support.v4.app.FragmentActivity$1
在这里插入图片描述
7. 安装错误提示: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
初步原因,包命中存在大写的字母。
但是,为什么,别人的apk包名大写可以安装?

在这里插入图片描述
可以解决包名大写问题,但是好还有类名的Com也是大写的(未解决)。反编译apk导入android studio_第4张图片
还存在的问题
反编译apk导入android studio_第5张图片

  1. 错误: [drawable-mdpi-v4/ic_launcher] F:\chNet\workspace\hubei\SmartSearch5\app\src\main\res\drawable-mdpi\ic_launcher.png [drawable-mdpi-v4/ic_launcher] F:\chNet\workspace\hubei\SmartSearch5\app\src\main\res\drawable-mdpi-v4\ic_launcher.png: Error: Duplicate resources
    错误原因:资源文件中,两个相同功能的的文件夹下存在两个相同名称的资源,重复了。
    解决办法:删除多余的资源

你可能感兴趣的:(Android)