一.device supports,but APK only supports armeabi
解決方法1.更換USB插口
2.在ndk中添加手機架構
二.Android studio連接不上真機
解決方法:先在sdk tools中下載Google USB Driver,然后右鍵我的電腦找到設備管理器中的ADB Interface?點擊右鍵的菜單的”更新驅動軟件程序軟件”约巷,彈出”更新驅動程序軟件”對話框酪劫,選擇? 瀏覽計算機以查找驅動程序軟件,這一步選擇”顯示所有設備”,并單擊”下一步”,? ?在這一步選擇”Generic USB Hub” ,并單擊”從磁盤安裝”??彈出”從磁盤安裝對話框”嫉入,在”制造商文件復制來源”路徑壁查,選擇SDK下的”extras/google/usb_driver/android_winusb.inf”,點擊”確定”?觉至,在型號選擇“Android ADB Interface”,點擊“下一步? ?彈出”更新驅動程序警告”對話框”睡腿,點擊”是"? 完成
三语御。Process 'command 'D:\sdk\build-tools\xx.x.x\aapt.exe'' finished with non-zer
一般是清單文件或者gradle? 或者xml文件里面有地方寫錯了
四。Process 'command 'D:\studio\jre\bin\java.exe'' finished with non-zero exit value 2
一般是Android studio 沒有配置jdk
五席怪。微信支付第一次調(diào)起成功应闯,再次調(diào)起都會返回-1? 卸載微信再次安裝也是第一次成功
解決辦法:在確定參數(shù)無誤的情況下。去對比一下三微信開放平臺上的包名和簽名是否和當前項目的包名和簽名一致
五??does not have a single-column primary key
使用greenDao沒有設置主鍵引起的? 加上@Id注解??
六 greendao? ?the bind value at index 12 is null
這樣的去查看生成的dao文件? 根據(jù)上面提示的數(shù)據(jù)找到那個變量? 那個肯定是null
七 把依賴庫提取到config.gradle中? 一定記得在build.gradle加入依賴
八?點擊dialog彈框消失?鍵盤不消失問題?在onviewcreat()中加入
/**
? ? * 點擊非輸入框區(qū)域時挂捻,自動收起鍵盤
? ? */
? ? private void initSoftInputListener() {
? ? ? ? getDialog().getWindow().getDecorView()
? ? ? ? ? ? ? ? ? .setOnTouchListener(new View.OnTouchListener() {
? ? ? ? ? ? @Override
? ? ? ? ? ? public boolean onTouch(View view, MotionEvent event) {
? ? ? ? ? ? ? ? InputMethodManager manager = (InputMethodManager)getActivity()
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .getSystemService(Context.INPUT_METHOD_SERVICE);
? ? ? ? ? ? ? ? if (event.getAction() == MotionEvent.ACTION_DOWN) {
? ? ? ? ? ? ? ? ? ? if (getDialog().getCurrentFocus() != null
? ? ? ? ? ? ? ? ? ? && getDialog().getCurrentFocus().getWindowToken() != null) {
? ? ? ? ? ? ? ? ? ? ? ? ? manager.hideSoftInputFromWindow(
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? getDialog().getCurrentFocus().getWindowToken(),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? InputMethodManager.HIDE_NOT_ALWAYS);
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? return false;
? ? ? ? ? ? }
? ? ? ? });
? ? }