How to solve Bluetooth Scanner showing no Devices

0

I am basically a Java Enterprise programmer, new to Android programming just for a project requirement. You may find my question identical with this one : Android Bluetooth Scanner startDiscovery() showing nothing at the output Difference is, i have added some more information and steps i have taken to solve.

The permission i have taken in my ManiFest file:

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>

MainActivity

public class MainActivity extends AppCompatActivity {

    ListView listView;
    TextView statusTextView;
    Button searchButton;
    ArrayList<String> bluetoothDevices = new ArrayList<>();
    ArrayList<String> addresses = new ArrayList<>();
    ArrayAdapter arrayAdapter;
    private Set<BluetoothDevice> pairedDevices;

    BluetoothAdapter bluetoothAdapter;

    private final BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            String action = intent.getAction();
            Log.i("Action", action);

            if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
                statusTextView.setText("Finished");
                searchButton.setEnabled(true);
                System.out.println("\n--Finished : \n"+pairedDevices.size());
            } else if (BluetoothDevice.ACTION_FOUND.equals(action)) {
                BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
                String name = device.getName();
                String address = device.getAddress();
                String rssi = Integer.toString(intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE));
                //Log.i("Device Found","Name: " + name + " Address: " + address + " RSSI: " + rssi);

                if (!addresses.contains(address)) {
                    addresses.add(address);
                    String deviceString = "";
                    if (name == null || name.equals("")) {
                        deviceString = address + " - RSSI " + rssi + "dBm";
                    } else {
                        deviceString = name + " - RSSI " + rssi + "dBm";
                    }

                    bluetoothDevices.add(deviceString);
                    arrayAdapter.notifyDataSetChanged();
                }
            }
        }
    };

    public void searchClicked(View view) {
        statusTextView.setText("Searching...");
        Log.i("Debug", "\n\nSearch started\n\n");
        searchButton.setEnabled(false);
        bluetoothDevices.clear();
        addresses.clear();
        bluetoothAdapter.startDiscovery();


//        pairedDevices = BA.getBondedDevices();
        pairedDevices = bluetoothAdapter.getBondedDevices();
        Log.i("DEBUG", "Adaptar : " + bluetoothAdapter.getBondedDevices().toString());
        IntentFilter intentFilter = new IntentFilter((BluetoothDevice.ACTION_FOUND));
        ArrayList list = new ArrayList();
        for (BluetoothDevice bt : pairedDevices) {
            list.add(bt.getName());
        }
        //break point
        Log.i("Debug", "\n\nList Size : \n\n" + pairedDevices.size());


    }


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

        listView = findViewById(R.id.listView);
        statusTextView = findViewById(R.id.statusTextView);
        searchButton = findViewById(R.id.searchButton);

        arrayAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, bluetoothDevices);

        listView.setAdapter(arrayAdapter);

        bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();

        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);
        intentFilter.addAction(BluetoothDevice.ACTION_FOUND);
        intentFilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_STARTED);
        intentFilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
        registerReceiver(broadcastReceiver, intentFilter);
    }
}

UI XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Button
        android:id="@+id/searchButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="17dp"
        android:onClick="searchClicked"
        android:text="Search"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toStartOf="parent" />

    <TextView
        android:id="@+id/statusTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="7dp"
        app:layout_constraintBottom_toTopOf="@+id/searchButton"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toStartOf="parent" />

    <ListView
        android:id="@+id/listView"
        android:layout_width="368dp"
        android:layout_height="405dp"
        android:layout_marginBottom="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginStart="8dp"
        android:layout_marginTop="8dp"
        app:layout_constraintBottom_toTopOf="@+id/statusTextView"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

I have tested my code in two Devices : Android 8.1.0 API 27 and Android 6.0.1 API 23; in both phone, Bluetooth were on and discover Enabled. I have checked that the devices are finding other Bluetooth devices, from android phone's Bluetooth setting option. But no device is being found from my code. I am using Android Stdio 3.4, selected API level cover 98% device. I am following a tutorial. I have downloaded source code, of the tutorial. In the Tutorial the code is working fine.

I have Debugged the code, by setting a break point, after the discovery process end :

      System.out.println("\n--Finished : \n"+pairedDevices.size());

I have found that, varriable bluetoothAdapter is not null, but the pairedDevices is null. I have given the image of the debug console, along with the Logcat.

Android 6.0.1 API 23

console

04/17 15:51:36: Launching app

Split APKs installed in 26 s 4 ms
$ adb shell am start -n "com.example.bluetooth/com.example.bluetooth.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.example.bluetooth.test | com.example.bluetooth
Waiting for application to come online: com.example.bluetooth.test | com.example.bluetooth
Waiting for application to come online: com.example.bluetooth.test | com.example.bluetooth
Connecting to com.example.bluetooth
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ResourceType: No package identifier when getting name for resource number 0x00000000
W/ActivityThread: Application com.example.bluetooth is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
    waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8608', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1473)
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_dependencies_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_dependencies_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_0_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_1_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_1_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_3_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_4_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_5_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_6_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_7_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_8_apk.apk@classes.dex) because non-0 exit status
W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_9_apk.apk@classes.dex) because non-0 exit status
W/System: ClassLoader referenced unknown path: /data/app/com.example.bluetooth-2/lib/arm64
I/InstantRun: starting instant run server: is main process
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
W/ResourceType: No package identifier when getting name for resource number 0x00000000
D/AccessibilityManager: current package=com.example.bluetooth, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=false, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
    Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
I/Adreno: QUALCOMM build                   : 10c9f68, I74772a33ad
    Build Date                       : 02/07/17
    OpenGL ES Shader Compiler Version: XE031.07.00.01
    Local Branch                     : 
    Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.5.1_RB1.06.00.01.192.038
    Remote Branch                    : NONE
    Reconstruct Branch               : NOTHING
I/OpenGLRenderer: Initialized EGL, version 1.4
W/art: Before Android 4.1, method int androidx.appcompat.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
I/art: Background sticky concurrent mark sweep GC freed 21320(2MB) AllocSpace objects, 1(20KB) LOS objects, 48% free, 6MB/12MB, paused 429us total 131.778ms
I/Debug: Search started
I/DEBUG: Adaptar : []
I/Debug: List Size : 

    0
I/Action: android.bluetooth.adapter.action.DISCOVERY_STARTED
I/Action: android.bluetooth.adapter.action.DISCOVERY_FINISHED

Debugger Console API 23

Android 8.1.0 API 27 Log cat

04-17 15:52:03.723 26088-26088/? I/art: Late-enabling -Xcheck:jni
04-17 15:52:03.830 26088-26088/? D/TidaProvider: TidaProvider()
04-17 15:52:03.845 26088-26088/? W/ReflectionUtils: java.lang.NoSuchMethodException: android.os.MessageQueue#enableMonitor()#bestmatch
        at miui.util.ReflectionUtils.findMethodBestMatch(ReflectionUtils.java:338)
        at miui.util.ReflectionUtils.findMethodBestMatch(ReflectionUtils.java:375)
        at miui.util.ReflectionUtils.callMethod(ReflectionUtils.java:800)
        at miui.util.ReflectionUtils.tryCallMethod(ReflectionUtils.java:818)
        at android.os.BaseLooper.enableMonitor(BaseLooper.java:47)
        at android.os.Looper.prepareMainLooper(Looper.java:111)
        at android.app.ActivityThread.main(ActivityThread.java:5584)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
04-17 15:52:03.972 26088-26088/com.example.bluetooth W/ResourceType: No package identifier when getting name for resource number 0x00000000
04-17 15:52:03.980 26088-26088/com.example.bluetooth W/ActivityThread: Application com.example.bluetooth is waiting for the debugger on port 8100...
04-17 15:52:03.984 26088-26088/com.example.bluetooth I/System.out: Sending WAIT chunk
04-17 15:52:04.964 26088-26094/com.example.bluetooth I/art: Debugger is active
04-17 15:52:04.985 26088-26088/com.example.bluetooth I/System.out: Debugger has connected
04-17 15:52:04.985 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:05.185 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:05.385 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:05.586 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:05.786 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:05.986 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:06.186 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:06.386 26088-26088/com.example.bluetooth I/System.out: waiting for debugger to settle...
04-17 15:52:06.587 26088-26088/com.example.bluetooth I/System.out: debugger has settled (1473)
04-17 15:52:06.918 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_dependencies_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_dependencies_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.244 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_0_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.319 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_1_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_1_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.441 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_3_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.540 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_4_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.633 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_5_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.732 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_6_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.876 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_7_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:07.961 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_8_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:08.046 26088-26088/com.example.bluetooth W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m -j3 --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.example.bluetooth-2/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.bluetooth-2@split_lib_slice_9_apk.apk@classes.dex) because non-0 exit status
04-17 15:52:08.057 26088-26088/com.example.bluetooth W/System: ClassLoader referenced unknown path: /data/app/com.example.bluetooth-2/lib/arm64
04-17 15:52:08.066 26088-26088/com.example.bluetooth I/InstantRun: starting instant run server: is main process
04-17 15:52:08.344 26088-26088/com.example.bluetooth W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
04-17 15:52:08.358 26088-26088/com.example.bluetooth W/ResourceType: No package identifier when getting name for resource number 0x00000000
04-17 15:52:08.470 26088-26088/com.example.bluetooth D/AccessibilityManager: current package=com.example.bluetooth, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=false, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
04-17 15:52:08.554 26088-26088/com.example.bluetooth I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
04-17 15:52:08.554 26088-26088/com.example.bluetooth I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
04-17 15:52:08.940 26088-26338/com.example.bluetooth D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
04-17 15:52:09.176 26088-26338/com.example.bluetooth I/Adreno: QUALCOMM build                   : 10c9f68, I74772a33ad
    Build Date                       : 02/07/17
    OpenGL ES Shader Compiler Version: XE031.07.00.01
    Local Branch                     : 
    Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.5.1_RB1.06.00.01.192.038
    Remote Branch                    : NONE
    Reconstruct Branch               : NOTHING
04-17 15:52:09.185 26088-26338/com.example.bluetooth I/OpenGLRenderer: Initialized EGL, version 1.4
04-17 15:52:09.273 26088-26088/com.example.bluetooth W/art: Before Android 4.1, method int androidx.appcompat.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
04-17 15:52:09.354 26088-26098/com.example.bluetooth I/art: Background sticky concurrent mark sweep GC freed 21320(2MB) AllocSpace objects, 1(20KB) LOS objects, 48% free, 6MB/12MB, paused 429us total 131.778ms
04-17 15:52:40.525 26088-26088/com.example.bluetooth I/Debug: Search started
04-17 15:52:40.590 26088-26088/com.example.bluetooth I/DEBUG: Adaptar : []
04-17 15:52:40.591 26088-26088/com.example.bluetooth I/Debug: List Size : 

    0
04-17 15:52:40.728 26088-26088/com.example.bluetooth I/Action: android.bluetooth.adapter.action.DISCOVERY_STARTED
04-17 15:52:56.221 26088-26088/com.example.bluetooth I/Action: android.bluetooth.adapter.action.DISCOVERY_FINISHED

Debugger api 27

java
android
bluetooth
asked on Stack Overflow Apr 17, 2020 by Black Swan • edited Apr 17, 2020 by Phantômaxx

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0