美文网首页
导入别人项目出现错误

导入别人项目出现错误

作者: 大大da哈哈 | 来源:发表于2023-02-28 14:53 被阅读0次

    错误一:
    Uninitialized object exists on backward branch 45
    Exception Details:
    Location:
    com/android/tools/build/jetifier/core/proguard/ProGuardTypesMap.<init>([Lkotlin/Pair;)V @101: goto
    Reason:
    Error exists in the bytecode
    Bytecode:
    0000000: 2b12 bfb8 008d 2a2b 4d3a 0d03 3e2c 3a04
    0000010: bb00 2459 2cbe b700 2cc0 002e 3a05 0336
    0000020: 0619 043a 0719 07be 3608 0336 0915 0915
    0000030: 08a2 0037 1907 1509 323a 0a19 0519 0a3a
    0000040: 0b3a 0e03 360c 190b b600 d419 0bb6 00d7
    0000050: b800 b6b8 0065 3a0f 190e 190f b900 5902
    0000060: 0057 8409 01a7 ffc8 1905 c000 5b3a 0e19
    0000070: 0d19 0ec0 004e b800 6bb7 00b7 b1
    Stackmap Table:
    full_frame(@45,{UninitializedThis,Object[#220],Object[#220],Integer,Object[#220],Object[#46],Integer,Object[#220],Integer,Integer,Top,Top,Top,UninitializedThis},{})
    same_frame(@104)

    • Try:
      Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Exception is:
      java.lang.VerifyError: Uninitialized object exists on backward branch 45
      Exception Details:
      Location:
      com/android/tools/build/jetifier/core/proguard/ProGuardTypesMap.<init>([Lkotlin/Pair;)V @101: goto
      Reason:
      Error exists in the bytecode

    解决办法:File-->Project Structure--->SDK location--->JDK location was moved to Gradle Settings
    然后将gradle jdk选择为和如下相同:
    File-->Setting--->Build.Executiion,Deployment--->Gradle--->Gradle JDK(目前自己的为Android Studio Default JDK)

    错误二:
    List of apks:
    [0] 'D:\Users\Desktop\openGL_Android_demo-master\BaseDemo\OpenGL_FBOBit\app\build\outputs\apk\debug\app-debug.apk'
    Installation failed due to: 'Failed to commit install session 1908853544 with command cmd package install-commit 1908853544. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1908853544.tmp/base.apk (at Binary XML file line #27): com.example.opengl_fbobit.MainActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
    在activity中添加exported=true即可解决

    相关文章

      网友评论

          本文标题:导入别人项目出现错误

          本文链接:https://www.haomeiwen.com/subject/aislldtx.html