首页 / 浏览问题 / 移动 / 问题详情
移动端根据开发文档开发遇到问题,运行就闪退,报的错是许可无效怎么解决
zhaokai97811...  (45分)  初出茅庐
6月18日, 2021
报错提示

Process: com.example.myapplication, PID: 31313
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.activity.MainActivity}: java.lang.IllegalStateException: LicenseStatus[
    Status = 无效许可
    Type = 正式许可
    Version = 0
    SartDate = 1899-12-30
    ExpireDate = 1899-12-30
    ]

1个回答

您好,请问一下您那边使用的是试用许可还是正式许可呢?是否在程序中正确配置许可
董懿鑫  (8,992分)  登峰造极
6月18日, 2021
你的试用许可文件看是否过期?可以在官网重新申请一个替换一下看看
许可是今天申请的 但是底下报错现实信息的时间跟许可文件时间都对不上
您那边打开许可文件看下许可时间是不是正确的?看下logcat里面还有没有其他报错信息
Trial License
Modules=851967
Version=900
StartDate=20210618
ExpiredDate=20210918
DeviceIDType=UUID
###
F0673E7C1BCEDEAC33CDC7053A8715E4
时间是对的

   Process: com.example.myapplication, PID: 11049
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.activity.MainActivity}: java.lang.IllegalStateException: LicenseStatus[
    Status = 无效许可
    Type = 正式许可
    Version = 0
    SartDate = 1899-12-30
    ExpireDate = 1899-12-30
    ]
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3540)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3700)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:236)
        at android.app.ActivityThread.main(ActivityThread.java:8061)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
     Caused by: java.lang.IllegalStateException: LicenseStatus[
    Status = 无效许可
    Type = 正式许可
    Version = 0
    SartDate = 1899-12-30
    ExpireDate = 1899-12-30
    ]
        at com.supermap.data.Workspace.open(Workspace.java:221)
        at com.example.myapplication.activity.MainActivity.onCreate(MainActivity.java:45)
        at android.app.Activity.performCreate(Activity.java:8127)
        at android.app.Activity.performCreate(Activity.java:8098)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3513)
            ... 11 more

这是所有的报错信息
您那边加我一个联系方式,我这边给你看下。
...