无法将Application Insights SDK与Android Studio集成

时间:2015-11-07 15:28:08

标签: android android-studio azure-application-insights

我一步一步地跟着the instructions。弹出窗口显示“Application Insights SDK集成”,但实际上并非如此,至少不成功。显然尚未添加某些库,因为无法导入com.microsoft.applicationinsights.library.ApplicationInsights。 AndroidManifest.xml中尚未添加一些相关内容 Android Studio显示IDE致命错误,其中包含以下详细信息:

null
java.lang.NullPointerException
    at com.microsoft.applicationinsights.intellij.integration.IntegrateSDKTask.getDependenciesBlock(IntegrateSDKTask.java:219)
    at com.microsoft.applicationinsights.intellij.integration.IntegrateSDKTask.integrateDependency(IntegrateSDKTask.java:159)
    at com.microsoft.applicationinsights.intellij.integration.IntegrateSDKTask.integrateWithBuildFile(IntegrateSDKTask.java:106)
    at com.microsoft.applicationinsights.intellij.integration.IntegrateSDKTask.integrateWithModule(IntegrateSDKTask.java:85)
    at com.microsoft.applicationinsights.intellij.integration.IntegrateSDKTask.access$300(IntegrateSDKTask.java:42)
    at com.microsoft.applicationinsights.intellij.integration.IntegrateSDKTask$1.run(IntegrateSDKTask.java:67)
    at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:161)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:682)
    at java.awt.EventQueue$3.run(EventQueue.java:680)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
    at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:818)
    at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:197)
    at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:633)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:363)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:76)
    at com.intellij.openapi.progress.impl.CoreProgressManager.run(CoreProgressManager.java:293)
    at com.intellij.openapi.progress.Task.queue(Task.java:74)
    at com.microsoft.applicationinsights.intellij.actions.IntegrateSDKAction.doIntegration(IntegrateSDKAction.java:188)
    at com.microsoft.applicationinsights.intellij.actions.IntegrateSDKAction.access$600(IntegrateSDKAction.java:32)
    at com.microsoft.applicationinsights.intellij.actions.IntegrateSDKAction$3.run(IntegrateSDKAction.java:133)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:682)
    at java.awt.EventQueue$3.run(EventQueue.java:680)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

有人可以就如何解决这个问题提出建议吗?

0 个答案:

没有答案