This adb server’s $ADB_VENDOR_KEYS is not set

I uninstall my old android studio and delete folders from the previous installation. Then, I install the new version of android studio. But, I am having the same issue as the one on Android adb devices unauthorized Basically, the phone will not display a message which asked me to confirm. I found the adbkey.pub and adbkey …

Read more

Can’t create handler inside thread that has not called Looper.prepare()

You’re calling it from a worker thread. You need to call Toast.makeText() (and most other functions dealing with the UI) from within the main thread. You could use a handler, for example. Look up Communicating with the UI Thread in the documentation. In a nutshell: Other options: You could use Activity.runOnUiThread(). Straightforward if you have an Activity: You could also post …

Read more

This adb server’s $ADB_VENDOR_KEYS is not set

I uninstall my old android studio and delete folders from the previous installation. Then, I install the new version of android studio. But, I am having the same issue as the one on Android adb devices unauthorized Basically, the phone will not display a message which asked me to confirm. I found the adbkey.pub and adbkey …

Read more

recyclerview No adapter attached; skipping layout

Can you make sure that you are calling these statements from the “main” thread outside of a delayed asynchronous callback (for example inside the onCreate() method). As soon as I call the same statements from a “delayed” method. In my case a ResultCallback, I get the same message. In my Fragment, calling the code below from inside a ResultCallback method produces …

Read more

Can’t create handler inside thread that has not called Looper.prepare()

You’re calling it from a worker thread. You need to call Toast.makeText() (and most other functions dealing with the UI) from within the main thread. You could use a handler, for example. Look up Communicating with the UI Thread in the documentation. In a nutshell: Other options: You could use Activity.runOnUiThread(). Straightforward if you have an Activity: You could also post …

Read more

Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm

I want to compile an open source android project (Netguard) using gradel (gradlew clean build) But I encountered this Error: I serached but didn’t find enything helping. Here is the main build.gradle: And here is the build.gradle of the app project: And I’m using gradle-2.9-all and android-ndk-r10e. I don’t know if I should mention anything else, so comment if you need any information.