简体   繁体   English

android 应用程序在上传到谷歌播放时崩溃

[英]android app crashes when uploading to google play

My application worked well when I run it through Android Studio but it crashes when I download it from Google Play store.当我通过 Android Studio 运行我的应用程序时,它运行良好,但是当我从 Google Play 商店下载它时它崩溃了。 It used to work well but suddenly this happened without changing anything this is the google play crash log:它曾经运行良好但突然发生这种情况而没有改变任何东西这是谷歌播放崩溃日志:

      java.lang.NoClassDefFoundError: 
      at net.sourceforge.jtds.jdbc.Support.calculateNamedPipeBufferSize (Support.java)
      at net.sourceforge.jtds.jdbc.Support.class$ (Support.java)
      at net.sourceforge.jtds.jdbc.Support.convert (Support.java)
      at net.sourceforge.jtds.jdbc.Support.convertLOB (Support.java)
      at net.sourceforge.jtds.jdbc.Support.convertLOBType (Support.java)
      at net.sourceforge.jtds.jdbc.Support.encodeString (Support.java)
      at net.sourceforge.jtds.jdbc.Support.getJdbcType (Support.java)
      at net.sourceforge.jtds.jdbc.Support.getParameterDefinitions (Support.java)
      at net.sourceforge.jtds.jdbc.Support.getStatementKey (Support.java)
      at net.sourceforge.jtds.jdbc.Support.isWindowsOS (Support.java)
      at net.sourceforge.jtds.jdbc.Support.linkException (Support.java)
      at net.sourceforge.jtds.jdbc.Support.normalizeBigDecimal (Support.java)
      at net.sourceforge.jtds.jdbc.Support.substituteParamMarkers (Support.java)
      at net.sourceforge.jtds.jdbc.Support.timeFromZone (Support.java)
      at net.sourceforge.jtds.jdbc.Support.toHex (Support.java)
      at net.sourceforge.jtds.jdbc.Support.<clinit> (Support.java)
      at net.sourceforge.jtds.jdbc.Support.calculateNamedPipeBufferSize (Support.java)
      at net.sourceforge.jtds.jdbc.Support.class$ (Support.java)
      at net.sourceforge.jtds.jdbc.Support.convert (Support.java)
      at net.sourceforge.jtds.jdbc.Support.convertLOB (Support.java)
      at net.sourceforge.jtds.jdbc.Support.convertLOBType (Support.java)
      at net.sourceforge.jtds.jdbc.Support.encodeString (Support.java)
      at net.sourceforge.jtds.jdbc.Support.getJdbcType (Support.java)
      at net.sourceforge.jtds.jdbc.Support.getParameterDefinitions (Support.java)
      at net.sourceforge.jtds.jdbc.Support.getStatementKey (Support.java)
      at net.sourceforge.jtds.jdbc.Support.isWindowsOS (Support.java)
      at net.sourceforge.jtds.jdbc.Support.linkException (Support.java)
      at net.sourceforge.jtds.jdbc.Support.normalizeBigDecimal (Support.java)
      at net.sourceforge.jtds.jdbc.Support.substituteParamMarkers (Support.java)
      at net.sourceforge.jtds.jdbc.Support.timeFromZone (Support.java)
      at net.sourceforge.jtds.jdbc.Support.toHex (Support.java)
      at net.sourceforge.jtds.jdbc.ConnectionJDBC2.addStatement (ConnectionJDBC2.java)
      at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkLocal (ConnectionJDBC2.java)
      at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen (ConnectionJDBC2.java)
      at net.sourceforge.jtds.jdbc.ConnectionJDBC2.getSybaseInfo (ConnectionJDBC2.java)
      at net.sourceforge.jtds.jdbc.ConnectionJDBC2.parseBooleanProperty (ConnectionJDBC2.java)
      at net.sourceforge.jtds.jdbc.ConnectionJDBC2.setCollation (ConnectionJDBC2.java)
      at net.sourceforge.jtds.jdbc.TdsCore.z (TdsCore.java)
      at net.sourceforge.jtds.jdbc.TdsCore.nextToken (TdsCore.java:4)
      at net.sourceforge.jtds.jdbc.TdsCore.login (TdsCore.java:43)
      at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init> (ConnectionJDBC2.java:16)
      at net.sourceforge.jtds.jdbc.Driver.connect (Driver.java:2)
      at java.sql.DriverManager.getConnection (DriverManager.java:569)
      at java.sql.DriverManager.getConnection (DriverManager.java:219)
      at info.xyz.yourapplication2.ConnectSQL.Run (ConnectSQL.java)
      at info.xyz.yourapplication2.ConnectSQL.connectionclass (ConnectSQL.java)
      at info.xyz.yourapplication2.getproducttype.a (getproducttype.java)
      at info.xyz.yourapplication2.MainActivity.onCreate (MainActivity.java:5)
      at android.app.Activity.performCreate (Activity.java:6942)
      at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1126)
      at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2880)
      at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2988)
      at android.app.ActivityThread.-wrap14 (ActivityThread.java)
      at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1631)
      at android.os.Handler.dispatchMessage (Handler.java:102)
      at android.os.Looper.loop (Looper.java:154)
      at android.app.ActivityThread.main (ActivityThread.java:6682)
      at java.lang.reflect.Method.invoke (Method.java)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)
      at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)

Any idea what may have caused that?知道是什么原因造成的吗?

Here is my proguard-rules.pro .这是我的proguard-rules.pro

# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

Thank you in advance先感谢您

It looks like a proguard error to me.对我来说,这看起来像是一个 proguard 错误。 Let's add the following in your proguard-rules.pro and check if this fixes the issue.让我们在您的proguard-rules.pro中添加以下内容并检查是否可以解决问题。

-keep class net.sourceforge.jtds.jdbc.**
-keepclassmembers class net.sourceforge.jtds.jdbc.** { *; }

There must be a problem at your release while using pro guard.在使用 pro Guard 时,您的发布一定有问题。 Try to change your gradle.App property of尝试更改您的 gradle.App 属性

   buildTypes {
        release {
//try it without proguard
        }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么在 Google Play 商店上传应用程序时会出现 SslErrorHandler? - Why getting SslErrorHandler when uploading app in Google Play Store? Android App上传到远程服务器后崩溃了吗? - Android App crashes after uploading to remote server? 带有Google Play定位服务的应用在启动时崩溃 - App with google play location services crashes on launch Android 应用程序在 Play 商店发布后崩溃? - Android app crashes after publishing on Play Store? Cocos2d-x Android-Google Play游戏服务应用在connect()上崩溃 - Cocos2d-x Android - Google Play Game Services App crashes on connect() Google Play应用中的Android服务代码何时会更新? - When Android Service code in a Google Play app will be updated? 上传到 Play 商店时出现 Android 应用程序错误,上传前测试一切正常 - Android App Error when uploaded to Play Store , Before Uploading, tested everything was fine 当您未按一下播放时按暂停或停止时,Android广播流媒体应用程序崩溃 - Android radio streaming app crashes when you press pause or stop at the moment you haven't clicked play 将APK的草稿上传到Google Play中以测试应用内结算 - Uploading draft of APK into Google Play to test In-App Billing 访问适用于Android的Google Awareness API会导致应用崩溃 - Accessing Google Awareness API for Android Crashes App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM