首页 / 浏览问题 / 移动GIS / 问题详情
当项目更改了sdk和java路径后报错,开启mapview就会崩掉这是怎么回事,项目代码啥都没动,之前还能运行的
1EXP 2024年12月09日
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15647 (.pipelinesurvey), pid 15647 (.pipelinesurvey)
2024-12-06 14:53:13.679 15758-15758 DEBUG                   crash_dump64                         A  Cmdline: com.app.pipelinesurvey
2024-12-06 14:53:13.679 15758-15758 DEBUG                   crash_dump64                         A  pid: 15647, tid: 15647, name: .pipelinesurvey  >>> com.app.pipelinesurvey <<<
2024-12-06 14:53:13.679 15758-15758 DEBUG                   crash_dump64                         A  Abort message: 'Throwing new exception 'no non-static method "Lcom/supermap/mapping/MapControl2;.refreshCallback()V"' with unexpected pending exception: java.lang.NoSuchMethodError: no non-static method "Lcom/supermap/mapping/MapControl2;.taskRefreshCallBack(ZZ)V"
                                                                                                      at void com.supermap.mapping.MapControl2Native.jni_SetAction(long, int, int) (:-2)
                                                                                                      at void com.supermap.mapping.MapControl2.setAction(com.supermap.mapping.Action) (:-1)
                                                                                                      at void com.supermap.mapping.MapControl2.a(android.content.Context, com.supermap.data.Workspace) (:-1)
                                                                                                      at void com.supermap.mapping.MapControl2.<init>(android.content.Context, com.supermap.data.Workspace) (:-1)
                                                                                                      at void com.supermap.mapping.MapControl2.<init>(android.content.Context) (:-1)
                                                                                                      at void com.supermap.mapping.MapControl.a(android.content.Context) (:-1)
                                                                                                      at void com.supermap.mapping.MapControl.<init>(android.content.Context) (:-1)
                                                                                                      at void com.supermap.mapping.MapView.a(android.content.Context) (:-1)
                                                                                                      at void com.supermap.mapping.MapView.<init>(android.content.Context, android.util.AttributeSet) (:-1)
                                                                                                      at java.lang.Object java.lang.reflect.Constructor.newInstance0(java.lang.Object[]) (Constructor.java:-2)
                                                                                                      at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:343)
                                                                                                      at android.view.View android.view.LayoutInflater.createView(android.content.Context, java.lang.String, java.lang.String, android.util.AttributeSet) (LayoutInflater.java:858)
                                                                                                      at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:1010)
                                                                                                      at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:965)
                                                                                                      at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:1127)
                                                                                                      at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:1088)
                                                                                                      at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:686)
                                                                                                      at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:538)
                                                                                                      at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:485)
                                                                                                      at void com.android.internal.policy.PhoneWindow.setContentView(int) (PhoneWindow.java:471)
                                                                                                      at void android.app.Activity.setContentView(int) (Activity.java:3523)
                                                                                                      at void com.app.pipelinesurvey.view.activity.MapActivity.onCreate(android.os.Bundle) (:-1)
                                                                                                      at void android.app.Activity.performCreate(android.os.Bundle, android.os.PersistableBundle) (Activity.java:8054)
                                                                                                      at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:8034)
                                                                                                      at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1347)
                                                                                                      at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:3736)
                                                                                                      at android.app.Activity android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.app.servertransaction.PendingTransactionActions, android.content.Intent) (ActivityThread.java:3931)
                                                                                                      at void android.app.servertransaction.LaunchActivityItem.execute(android.app.ClientTransactionHandler, android.os.IBinder, android.app.servertransaction.PendingTransactionActions) (LaunchActivityItem.java:103)
                                                                                                      at void android.app.servertransaction.TransactionExecutor.executeCallbacks(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:135)

1个回答

根据错误 java.lang.NoSuchMethodError: no non-static method "Lcom/supermap/mapping/MapControl2来看,那边更改目录后清除下编译文件,rebuild下工程,再重新编译运行下项目看下
3,735EXP 2024年12月09日
感谢你的回答,我找到问题所在了,项目启动了混淆,已在社区找到了解决方法
热门文章
关注我们
...