Android 市场,堆栈跟踪上的版本号 - 它是什么?
我在 Android Market 上有一个应用程序抛出异常,我已经尝试了几次修补该异常。最近出现了同一问题的另一个堆栈跟踪,从跟踪中我不清楚正在运行哪个版本。
版本的唯一指示是:
“v1.0”
这对应于清单中的版本名称,但它可能对应于我上传的第一个版本代码,即 1。知道它是哪一个吗?
(如果能提供版本代码就太好了,因为在上传之前必须增加版本代码)
以下是跟踪:
v1.0
Aug 9, 2011 3:28:11 AM
1 reports/week
1 reports
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kanjisoft.jlpt5.free/com.jlptquiz.app.StartActivity}: android.database.sqlite.SQLiteException: no such table: word_review_schedule: , while compiling: insert into word_review_schedule(_id, last_review_date,next_review_date) values (?, ?, ?)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2787)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
at android.app.ActivityThread.access$2300(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: no such table: word_review_schedule: , while compiling: insert into word_review_schedule(_id, last_review_date,next_review_date) values (?, ?, ?)
at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91)
at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:64)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:80)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:36)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1212)
at com.jlptquiz.app.DataBaseHelper.openDataBase(DataBaseHelper.java:271)
at com.jlptquiz.app.DataBaseHelper.createDB(DataBaseHelper.java:104)
at com.jlptquiz.app.InitUtils.initializeWordGroupings(InitUtils.java:421)
at com.jlptquiz.app.InitUtils.initialize(InitUtils.java:87)
at com.jlptquiz.app.StartActivity.onCreate(StartActivity.java:81)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
... 11 more
I have an app on the Android Market that's throwing an exception which I've made a couple of attempts to patch. Another stack trace for the same problem recently showed up, and it's unclear to me from trace which version was being run.
The only indication of version is this:
"v1.0"
This corresponds to the Version Name in the the manifest, but it could conceivably correspond to the first versionCode that I uploaded, which was 1. Any idea which which one it is?
(It would be really nice of the version code were provided, because that must be increased before you can upload)
Here's the trace:
v1.0
Aug 9, 2011 3:28:11 AM
1 reports/week
1 reports
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kanjisoft.jlpt5.free/com.jlptquiz.app.StartActivity}: android.database.sqlite.SQLiteException: no such table: word_review_schedule: , while compiling: insert into word_review_schedule(_id, last_review_date,next_review_date) values (?, ?, ?)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2787)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
at android.app.ActivityThread.access$2300(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: no such table: word_review_schedule: , while compiling: insert into word_review_schedule(_id, last_review_date,next_review_date) values (?, ?, ?)
at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91)
at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:64)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:80)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:36)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1212)
at com.jlptquiz.app.DataBaseHelper.openDataBase(DataBaseHelper.java:271)
at com.jlptquiz.app.DataBaseHelper.createDB(DataBaseHelper.java:104)
at com.jlptquiz.app.InitUtils.initializeWordGroupings(InitUtils.java:421)
at com.jlptquiz.app.InitUtils.initialize(InitUtils.java:87)
at com.jlptquiz.app.StartActivity.onCreate(StartActivity.java:81)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
... 11 more
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是版本号(android:versionName)。
尽管您可以更精细地控制版本号,但您应该与版本代码同时增加此值。
例如,您从 v1.0 开始,然后进行一些错误修复 v1.1.1 您进行进一步的错误修复 v1.1.2 您添加一些新功能 v1.2 然后彻底检查整个 ui! v2.0
如何实现版本控制是您的选择,但这是一个简单的示例,
维基百科一次提供了一些不错的知识: 软件版本控制
It is the version number (android:versionName).
You should increase this in parralel with your version code, although you have more granular control over the version number.
For instance you start with v1.0 you then make some bug fixes v1.1.1 you make further bug fixes v1.1.2 you add some new feature v1.2 you then overhaul the whole ui! v2.0
It's your choice how you implement versioning but this is a simple example
Wikipedia has some decent knowledge for once: software versioning