Android启动时发生java.lang.RuntimeException崩溃

时间:2017-07-02 14:27:41

标签: android

我的Android应用程序出现问题,但在任何Android版本的设备上都无法打开。一些设备和操作系统

HTC One M8 4.4.4,
三星SM-N910V Galaxy Note 4 on 6.0.1,
SM-G930V Galaxy S7 on 7.0,
华为P9对6.0,
华为Y560在5.1.1上,

该应用在iOS上正常运行,并且可以在Android Studio模拟器中运行。所有崩溃报告都是一样的。这是一次崩溃的屏幕截图。

Screenshot of crash report

注意我不是程序员

Runtime.java - 此代码中包含java.lang.Runtime

public void loadLibrary(String libname, ClassLoader classLoader) {
checkTargetSdkVersionForLoad("java.lang.Runtime#loadLibrary(String, ClassLoader)");
java.lang.System.logE("java.lang.Runtime#loadLibrary(String, ClassLoader)" +
" is private and will be removed in a future Android release");
loadLibrary0(classLoader, libname);

机器人/ MainActivity.java

public class MainActivity extends Activity {
    private static final int NOTIFICATION_ID = 0; // Used for OSU count
    private static final int NOTIFICATION_MESSAGE_ID = 1; // Used for other messages
    private static final Locale LOCALE = java.util.Locale.getDefault();

    private static volatile OSUService sOsuService;

    private ListView osuListView;
    private OsuListAdapter2 osuListAdapter;
    private String message;

    public MainActivity() {

appwithspaces / MainActivity.java

public class MainActivity extends Activity {
    ActivityMainBinding mBinder;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinder = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(mBinder.getRoot());

multimoduletestapp / MainActivity.java

public class MainActivity extends Activity {
    ActivityMainBinding mBinder;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinder = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(mBinder.getRoot());
    }

    public ActivityMainBinding getBinder() {
        return mBinder;
    }

MainActivity.java

public class MainActivity extends Activity {

    private ListView mListView;
    private final BitmapCache mCache = new UnrefedBitmapCache(TARGET_CACHE_SIZE_BYTES, 0, 0);
    private final DecodeAggregator mDecodeAggregator = new DecodeAggregator();

    private static Drawable PLACEHOLDER;
    private static Drawable PROGRESS;

    private static final float NORMAL_PARALLAX_MULTIPLIER = 1.5f;
    private static final int TARGET_CACHE_SIZE_BYTES = 5 * 1024 * 1024;

这是我迄今为止为MainActivity找到的内容。我希望我朝着正确的方向前进。

0 个答案:

没有答案