Osmand在调试时构建崩溃

时间:2014-12-26 13:14:15

标签: android debugging android-studio

我稍微修复了(master branch 26-12-2014)之后,我成功地将最新的主文件夹Android-Studio,Gradle build导入了asset missing,inner fragment static error项目,然后我在我的设备上启动了调试器(samsung galaxy 3 min,Android 4.1.2),我期望获得Osmand running on my device,但在获取crashes and the log indicate文件时会发生应用routing.xml

12-26 10:47:10.069  10508-10508/net.osmand.plus E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to create application net.osmand.plus.OsmandApplication: java.lang.IllegalStateException: java.lang.IllegalArgumentException
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4200)
            at android.app.ActivityThread.access$1400(ActivityThread.java:134)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4867)
            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:1007)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException
            at net.osmand.router.RoutingConfiguration.getDefault(RoutingConfiguration.java:171)
            at net.osmand.plus.helpers.AvoidSpecificRoads.getBuilder(AvoidSpecificRoads.java:44)
            at net.osmand.plus.helpers.AvoidSpecificRoads.<init>(AvoidSpecificRoads.java:38)
            at net.osmand.plus.OsmandApplication.onCreate(OsmandApplication.java:168)

感谢。

1 个答案:

答案 0 :(得分:0)

确保“OsmAnd / scr / net / osmand /”文件夹中有一个名为“router”的文件夹,其中包含routing.xml文件。

如果没有,您可以找到所需的资源here