Jieli-Tech / Android-JL_Bluetooth

4 stars 2 forks source link

新專案直接崩潰 #4

Closed ChildProdigy closed 1 month ago

ChildProdigy commented 1 month ago

public class App extends AppApplication { private static App instance;

public static App getInstance() {
    return instance;
}

@Override
public void onCreate() {
    super.onCreate();
    instance = this;
    if (!RCSPController.isInit()) {
        BluetoothOption bluetoothOption = BluetoothOption.createDefaultOption()
                .setPriority(BluetoothOption.PREFER_BLE)
                .setUseDeviceAuth(true);
        RCSPController.init(this, bluetoothOption);
    }

    RCSPController.getInstance();
}

}

創一個新專案使用不同包名, RCSPController.getInstance(); 拿掉可以運行 RCSPController.getInstance(); 加上去就會崩潰

以下為崩潰訊息 com.google.android.finsky.verifier.apkanalysis.client.ApkAnalysisException: FILE_NOT_FOUND_EXCEPTION while analyzing APK at aelq.b(PG:216) at bhiy.og(PG:5) at bhpv.run(PG:109) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at qlq.run(PG:987) at java.lang.Thread.run(Thread.java:1012) Caused by: kotlin.io.NoSuchFileException: /data/app/vmdl1481897331.tmp/base.apk: The source file doesn't exist. at aelq.b(PG:204) at bhiy.og(PG:5)  at bhpv.run(PG:109)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)  at qlq.run(PG:987)  at java.lang.Thread.run(Thread.java:1012) 

FATAL EXCEPTION: main (Ask Gemini) Process: com.jieli.debug, PID: 10498 java.lang.RuntimeException: Unable to create application com.jieli.global.application.App: java.lang.ClassNotFoundException: com.jieli.bluetooth.utils.CryptoUtil at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6901) at android.app.ActivityThread.access$1500(ActivityThread.java:258) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133)