gpt4 book ai didi

java - Activity 未列入白名单

转载 作者:行者123 更新时间:2023-12-02 09:34:26 25 4
gpt4 key购买 nike

我最近在 Google Play 上启动了一个应用程序。它在我的调试版本上运行良好,但是当我从 google play 下载发布版本时它开始崩溃。我现在尝试安装生成的 app-release.apk (虽然我上传了 app.abb bundle ,但我不知道如何从中获取 apk)通过 android studio,它给了我以下日志:

2019-08-27 05:46:09.978 819-852/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2019-08-27 05:46:09.982 1449-8273/? E/ANDR-PERF-JNI: Iop tryGetService failed
2019-08-27 05:46:09.998 1449-8273/? E/ActivityTrigger: activityStartTrigger: not whiteListedin.curioustools.water_reminder/in.curioustools.water_reminder.ui.StartActivity/1
2019-08-27 05:46:09.998 1449-8273/? E/ActivityTrigger: activityResumeTrigger: not whiteListedin.curioustools.water_reminder/in.curioustools.water_reminder.ui.StartActivity/1
2019-08-27 05:46:10.008 1449-10327/? E/ActivityTrigger: activityResumeTrigger: not whiteListedin.curioustools.water_reminder/in.curioustools.water_reminder.ui.StartActivity/1
2019-08-27 05:46:10.041 23961-23961/? E/.water_reminde: Not starting debugger since process cannot load the jdwp agent.
...

完整日志为here 。我究竟做错了什么?为什么我的 Activity 没有列入白名单?这是我的 Activity 和 list :

//manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="in.curioustools.water_reminder">

<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".ui.screen_dashboard.DashBoardActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="portrait"
/>

<activity
android:name=".ui.screen_intro.IntroInfoActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="portrait"
/>
<activity android:name=".ui.StartActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="portrait"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<receiver android:name=".broadcast_recievers.NotificationActionReceiver" />
</application>

</manifest>

和:

//StartActivitty.java
package in.curioustools.water_reminder.ui;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import in.curioustools.water_reminder.R;
import in.curioustools.water_reminder.services.ServicesHandler;
import in.curioustools.water_reminder.ui.screen_intro.IntroInfoActivity;
import in.curioustools.water_reminder.ui.screen_dashboard.DashBoardActivity;

import static in.curioustools.water_reminder.db.pref.PrefUserDetails.*;

public class StartActivity extends AppCompatActivity {

//private static final String TAG = "startActivity";
Class classToBeLaunched;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_start);

ServicesHandler.updateServices(this);

SharedPreferences pref= getSharedPreferences(PREF_NAME, MODE_PRIVATE);
boolean shownOneTime=pref.getBoolean(KEYS.KEY_SHOWN_INFO_ACTIVITY, Defaults.HAS_SHOWN_INTRO_INFO_ACTIVITY);
classToBeLaunched = shownOneTime ?DashBoardActivity.class:IntroInfoActivity.class;
startActivity(new Intent(StartActivity.this, classToBeLaunched));
finish();

}

}

最佳答案

我在 gradle 中禁用了代码压缩,问题已解决

android {
buildTypes {
release {
minifyEnabled false
}
}
}

关于java - Activity 未列入白名单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57666374/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com