android studio 升级3.5 jni问题

图片说明

升级之前没有这个报错,升级之后一直这样
编译可以通过,只是显示有问题,重启as,电脑,都不行

方法名报错,要添加extend “C”这个还好说

那下面的那个是什么错呢?不知道是不是什么还要升级,有知道的吗?

1个回答

androidwubo
Orion-武博 。。。完全没有啊感觉
6 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
jni显示错误,但是编译没有影响
如下图: ![图片说明](https://img-ask.csdn.net/upload/202002/28/1582882876_844929.jpg) 这是什么情况?? Android studio 3.5
用荣耀9调试显示[ThreadDexHotfixMonitor]Bind hotfix monitor service fail!
有没有大佬看看这是什么问题啊,用荣耀9调试的时候日志显示[ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 手机上打开了开发者模式,android studio也能连上,就想发条通知,但怎么点击按钮都没用。下面是debug日志 10-02 17:16:04.256 16362-16362/? I/otificationtes: Late-enabling -Xcheck:jni 10-02 17:16:04.330 16362-16362/? I/otificationtes: Reinit property: dalvik.vm.checkjni= false 10-02 17:16:04.346 16362-16362/? D/ZrHung.AppEyeUiProbe: AppEyeUIP created. 10-02 17:16:04.349 16362-16362/? D/ActivityThread: Attach thread to application 10-02 17:16:04.432 16362-16393/com.example.notificationtest I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.notificationtest#10223#256 10-02 17:16:04.434 16362-16393/com.example.notificationtest I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.example.notificationtest#10223#0 10-02 17:16:04.457 16362-16362/com.example.notificationtest I/InstantRun: Instant Run Runtime started. Android package is com.example.notificationtest, real application class is null. 10-02 17:16:04.642 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden method Ldalvik/system/BaseDexClassLoader;->getLdLibraryPath()Ljava/lang/String; (light greylist, reflection) 10-02 17:16:04.644 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:04.770 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:04.770 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:04.842 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:04.843 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:04.933 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:04.933 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.006 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.007 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.092 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.093 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.163 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.164 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.243 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.244 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.342 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.343 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.442 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.442 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.526 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.527 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.659 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.660 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.746 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.746 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.817 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.818 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:05.946 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:05.947 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:06.055 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:06.056 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:06.182 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:06.183 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:06.305 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:06.306 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:06.493 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:06.494 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:06.710 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:06.711 16362-16362/com.example.notificationtest W/otificationtes: Unsupported class loader 10-02 17:16:06.785 16362-16362/com.example.notificationtest W/otificationtes: Skipping duplicate class check due to unsupported classloader 10-02 17:16:06.787 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Ljava/lang/ClassLoader;->parent:Ljava/lang/ClassLoader; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden method Landroid/app/ActivityThread;->currentActivityThread()Landroid/app/ActivityThread; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Landroid/app/ActivityThread;->mInitialApplication:Landroid/app/Application; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Landroid/app/ActivityThread;->mAllApplications:Ljava/util/ArrayList; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Landroid/app/LoadedApk;->mApplication:Landroid/app/Application; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Landroid/app/LoadedApk;->mResDir:Ljava/lang/String; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Landroid/app/Application;->mLoadedApk:Landroid/app/LoadedApk; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Landroid/app/ActivityThread;->mPackages:Landroid/util/ArrayMap; (light greylist, reflection) 10-02 17:16:06.790 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden field Landroid/app/ActivityThread;->mResourcePackages:Landroid/util/ArrayMap; (light greylist, reflection) 10-02 17:16:06.795 16362-16393/com.example.notificationtest I/AwareBitmapCacher: init processName:com.example.notificationtest pid=16362 uid=10223 10-02 17:16:06.798 16362-16791/com.example.notificationtest E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@28ac4fd 10-02 17:16:06.798 16362-16791/com.example.notificationtest E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@d43b3f9 10-02 17:16:06.800 16362-16362/com.example.notificationtest D/ZrHung.AppEyeUiProbe: notify runnable to start. 10-02 17:16:06.802 16362-16793/com.example.notificationtest D/ZrHung.AppEyeUiProbe: Runnable thread started. 10-02 17:16:06.802 16362-16393/com.example.notificationtest E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 10-02 17:16:06.802 16362-16793/com.example.notificationtest D/IMonitor: Load library imonitor_jni 10-02 17:16:06.904 16362-16362/com.example.notificationtest I/HwApsImpl: APS: new HwApsImpl created 10-02 17:16:06.911 16362-16362/com.example.notificationtest I/HwPhoneWindow: updateLayoutParamsColor false mSpecialSet=false, mForcedNavigationBarColor=false, navigationBarColor=0, mNavBarShow=false, mIsFloating=false 10-02 17:16:06.911 16362-16362/com.example.notificationtest I/HwPhoneWindow: updateLayoutParamsColor true mSpecialSet=true, mForcedNavigationBarColor=false, navigationBarColor=fffcfcfc, mNavBarShow=false, mIsFloating=false 10-02 17:16:06.934 16362-16362/com.example.notificationtest I/OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config 10-02 17:16:06.934 16362-16362/com.example.notificationtest I/OverScrollerOptimization: get the overscroller config 10-02 17:16:06.938 16362-16362/com.example.notificationtest I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx 10-02 17:16:06.938 16362-16362/com.example.notificationtest I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx 10-02 17:16:06.938 16362-16362/com.example.notificationtest D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx 10-02 17:16:06.938 16362-16362/com.example.notificationtest D/FeatureFactory: loadFeature() new IHwSplineOverScrollerEx() 10-02 17:16:06.939 16362-16362/com.example.notificationtest D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@5f9433,android.support.v7.view.ContextThemeWrapper@a4bd3f0 10-02 17:16:06.940 16362-16362/com.example.notificationtest D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0 10-02 17:16:06.941 16362-16362/com.example.notificationtest I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx 10-02 17:16:06.941 16362-16362/com.example.notificationtest I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx 10-02 17:16:06.941 16362-16362/com.example.notificationtest D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx 10-02 17:16:06.941 16362-16362/com.example.notificationtest D/FeatureFactory: loadFeature() new IHwSplineOverScrollerEx() 10-02 17:16:06.941 16362-16362/com.example.notificationtest D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@b323f1c,android.support.v7.view.ContextThemeWrapper@a4bd3f0 10-02 17:16:06.941 16362-16362/com.example.notificationtest D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0 10-02 17:16:06.979 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection) 10-02 17:16:06.980 16362-16362/com.example.notificationtest W/otificationtes: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection) 10-02 17:16:06.990 16362-16362/com.example.notificationtest D/TextView: get Display Panel Type is : 0 10-02 17:16:07.005 16362-16362/com.example.notificationtest D/ActivityThread: add activity client record, r= ActivityRecord{29dbe14 token=android.os.BinderProxy@b543ac0 {com.example.notificationtest/com.example.notificationtest.MainActivity}} token= android.os.BinderProxy@b543ac0 10-02 17:16:07.010 16362-16362/com.example.notificationtest D/ZrHung.AppEyeUiProbe: notify runnable to start. 10-02 17:16:07.021 16362-16362/com.example.notificationtest D/OpenGLRenderer: Skia GL Pipeline 10-02 17:16:07.027 16362-16362/com.example.notificationtest D/HwAppInnerBoostImpl: set config for com.example.notificationtest BOOST_FLAG=false REPORT_DURATION_CLICK=1000 REPORT_TIMES_CLICK=3 REPORT_DURATION_SLIDE=5000 REPORT_TIMES_SLIDE=16 10-02 17:16:07.028 16362-16362/com.example.notificationtest D/OpenGLRenderer: HWUI Binary is enabled 10-02 17:16:07.028 16362-16362/com.example.notificationtest D/OpenGLRenderer: disableOutlineDraw is true 10-02 17:16:07.053 16362-16799/com.example.notificationtest I/HiTouch_HiTouchSensor: enabledInPad = false,isPcCastMode = false 10-02 17:16:07.055 16362-16799/com.example.notificationtest D/HiTouch_PressGestureDetector: onAttached, package=com.example.notificationtest, windowType=1, mHiTouchRestricted=false 10-02 17:16:07.099 16362-16797/com.example.notificationtest I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 10-02 17:16:07.099 16362-16797/com.example.notificationtest I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0 10-02 17:16:07.101 16362-16797/com.example.notificationtest I/iGraphics: [0020080c] pn: com.example.notificationtest, p: 16362 10-02 17:16:07.101 16362-16797/com.example.notificationtest I/iGraphics: [0030080c] no spt app: com.example.notificationtest 10-02 17:16:07.101 16362-16797/com.example.notificationtest I/OpenGLRenderer: Initialized EGL, version 1.4, mEglDisplay 0x1 10-02 17:16:07.101 16362-16797/com.example.notificationtest D/OpenGLRenderer: Swap behavior 2 10-02 17:16:07.114 16362-16797/com.example.notificationtest D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 10-02 17:16:07.374 16362-16362/com.example.notificationtest W/InputMethodManager: startInputReason = 1 10-02 17:16:07.389 16362-16362/com.example.notificationtest W/InputMethodManager: startInputReason = 5 10-02 17:16:09.655 16362-16418/com.example.notificationtest W/ServiceManager: Service huawei.android.security.IAppBehaviorDataAnalyzer didn't start. Returning NULL 10-02 17:16:09.655 16362-16418/com.example.notificationtest E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 10-02 17:16:11.803 16362-16362/com.example.notificationtest D/AwareBitmapCacher: handleInit switch not opened pid=16362 10-02 17:16:13.556 16362-16362/com.example.notificationtest W/Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global. 10-02 17:16:13.614 16362-16362/com.example.notificationtest I/ViewRootImpl: jank_removeInvalidNode jank list is null 10-02 17:16:13.744 16362-16362/com.example.notificationtest D/HwGalleryCacheManagerImpl: mIsEffect:false 10-02 17:16:20.627 16362-16362/com.example.notificationtest I/ViewRootImpl: jank_removeInvalidNode all the node in jank list is out of time
安卓开发JDBC连接数据库No static method metafactory错误怎么解决?
直接上代码 JdbcUtil类 ``` package com.example.myapplication; import java.io.File; import java.io.FileInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.util.Properties; public class JdbcUtil { private static JdbcUtil instance; public static JdbcUtil getInstance(){ if (instance ==null){ instance = new JdbcUtil(); } return instance; } public Connection getConnection(String dbName,String name,String password) { try { new com.mysql.cj.jdbc.Driver(); String url = "jdbc:mysql://localhost:3306/"+dbName; return DriverManager.getConnection(url,name,password); } catch (Exception e) { return null; } } public Connection getConnection(String file){ File f = new File(file); if(!f.exists()){ return null; }else { Properties pro = new Properties(); try { Class.forName("com.mysql.jdbc.Driver"); pro.load(new FileInputStream(f)); String url = pro.getProperty("url"); String name = pro.getProperty("name"); String password = pro.getProperty("password"); return DriverManager.getConnection(url,name,password); }catch (Exception e){ return null; } } } } ``` UserDao类 ``` package com.example.myapplication; import android.util.Log; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import static android.content.ContentValues.TAG; public class UserDao { JdbcUtil jdbcUtil = JdbcUtil.getInstance(); //第一个参数为数据库名称,第二个参数为数据库账号 第三个参数为数据库密码 Connection conn = jdbcUtil.getConnection("test","root","LHMbdbqandr2015"); //注册 public boolean register(String name,String password){ if (conn==null){ Log.i(TAG,"register:conn is null"); return false; }else { //进行数据库操作 String sql = "insert into user(name,password) values(?,?)"; try { PreparedStatement pre = conn.prepareStatement(sql); pre.setString(1,name); pre.setString(2,password); return pre.execute(); } catch (SQLException e) { return false; }finally { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } //登录 public boolean login(String name,String password){ if (conn==null){ Log.i(TAG,"register:conn is null"); return false; }else { String sql = "select * from user where name=? and password=?"; try { PreparedStatement pres = conn.prepareStatement(sql); pres.setString(1,name); pres.setString(2,password); ResultSet res = pres.executeQuery(); boolean t = res.next(); return t; } catch (SQLException e) { return false; } } } } ``` MainActivity文件 ``` package com.example.myapplication; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.os.Looper; import android.os.Trace; import android.util.Log; import android.view.View; import android.widget.EditText; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private static final String TAG="MainActivity"; private EditText name; private EditText password; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); name = findViewById(R.id.name); password = findViewById(R.id.password); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (checkSelfPermission(Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED) { // TODO: Consider calling // Activity#requestPermissions requestPermissions(new String[]{Manifest.permission.INTERNET},1); // here to request the missing permissions, and then overriding // public void onRequestPermissionsResult(int requestCode, String[] permissions, // int[] grantResults) // to handle the case where the user grants the permission. See the documentation // for Activity#requestPermissions for more details. return; } } } //用户根据点击事件来找到相应的功能 public void fun(View v){ switch (v.getId()){ case R.id.register: new Thread(new Runnable() { @Override public void run() { String n = name.getText().toString().trim(); String psw = password.getText().toString().trim(); UserDao ud = new UserDao(); boolean result =ud.register(n,psw); if (!result){ Looper.prepare(); Toast toast = Toast.makeText(MainActivity.this,"注册成功!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); } Log.i(TAG,"fun"+result); //以上为jdbc注册 } }).start(); break; case R.id.login: new Thread(new Runnable() { @Override public void run() { String n = name.getText().toString().trim(); String psw = password.getText().toString().trim(); if (n.equals("")||psw.equals("")){ Looper.prepare(); Toast toast = Toast.makeText(MainActivity.this,"输入不能为空!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); } UserDao ud = new UserDao(); Boolean result = ud.login(n,psw); if (!result){ Looper.prepare(); Toast toast=Toast.makeText(MainActivity.this,"用户名不存在或密码错误!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); }else{ Looper.prepare(); Toast toast=Toast.makeText(MainActivity.this,"登录成功",Toast.LENGTH_SHORT); toast.show(); //一下代码为跳转界面 // Intent intent=new Intent(MainActivity.this,info.class); //intent.putExtra("name",n); // startActivity(intent); Looper.loop(); } //以上为jdbc登录 } }).start(); } } } ``` 现在遇到的问题如下 ``` 11/14 01:40:49: Launching 'app' on Nexus 5X API 29 x86. $ adb shell am start -n "com.example.myapplication/com.example.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Waiting for process to come online... Connected to process 23852 on device 'emulator-5554'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/e.myapplicatio: Not late-enabling -Xcheck:jni (already on) E/e.myapplicatio: Unknown bits set in runtime_flags: 0x8000 W/e.myapplicatio: Unexpected CPU variant for X86 using defaults: x86 D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) W/RenderThread: type=1400 audit(0.0:129): avc: denied { write } for name="property_service" dev="tmpfs" ino=8368 scontext=u:r:untrusted_app:s0:c130,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.example.myapplication D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so W/e.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) D/: HostConnection::get() New Host Connection established 0xd7d24f50, tid 23910 D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation: eglCreateContext: 0xe3340b60: maj 3 min 1 rcv 4 D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da glUtilsParamSize: unknow param 0x000082da W/Gralloc3: mapper 3.x is not supported D/: createUnique: call D/: HostConnection::get() New Host Connection established 0xd7d26ad0, tid 23910 HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 D/eglCodecCommon: allocate: Ask for block of size 0x1000 D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000 D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 I/AssistStructure: Flattened final assist data: 1788 bytes, containing 1 windows, 10 views W/e.myapplicatio: Accessing hidden method Ljava/lang/invoke/LambdaMetafactory;->metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; (blacklist, linking, denied) E/AndroidRuntime: FATAL EXCEPTION: Thread-2 Process: com.example.myapplication, PID: 23852 java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar) at com.mysql.cj.conf.ConnectionUrl.buildConnectionStringCacheKey(ConnectionUrl.java:246) at com.mysql.cj.conf.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:185) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:204) at java.sql.DriverManager.getConnection(DriverManager.java:580) at java.sql.DriverManager.getConnection(DriverManager.java:218) at com.example.myapplication.JdbcUtil.getConnection(JdbcUtil.java:22) at com.example.myapplication.UserDao.<init>(UserDao.java:15) at com.example.myapplication.MainActivity$1.run(MainActivity.java:53) at java.lang.Thread.run(Thread.java:919) D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) D/AutofillManager: onActivityFinishing(): calling cancelLocked() Process 23852 terminated. ``` 在网上百度了很多方法都没有解决,起初以为是驱动的问题,但是换了一个仍然不好用,求求大神赐教
小白求问为什么应用一进去就闪退了
04-17 22:29:38.316 2512-2512/? I/appproc: denglibo exec app_process! cmdline: /system/bin com.android.commands.pm.Pm install -t -r /data/local/tmp/com.example.hasee.myapplication 04-17 22:29:38.316 2512-2512/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<< 04-17 22:29:38.317 2512-2512/? D/AndroidRuntime: CheckJNI is OFF 04-17 22:29:38.332 2512-2512/? D/libnativebridge: PreInitializeNativeBridge name=unknown 04-17 22:29:38.359 2512-2512/? E/memtrack: Couldn't load memtrack module (No such file or directory) 04-17 22:29:38.359 2512-2512/? E/android.os.Debug: failed to load memtrack module: -2 04-17 22:29:38.376 2512-2512/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm --------- beginning of system 04-17 22:29:38.382 2159-2174/com.android.defcontainer I/NativeHelper: denglibo call findSupportedAbi! abiList=x86 armeabi-v7a armeabi packageName=com.example.hasee.myapplication 04-17 22:29:38.384 2159-2174/com.android.defcontainer D/NativeLibraryHelper: denglibo call LdFindSupportedAbi, param: supportedAbisArray=x86 armeabi-v7a armeabi 04-17 22:29:38.385 2159-2174/com.android.defcontainer D/NativeLibraryHelper: denglibo native LdFindSupportedAbi return! ret=-114 abi=NULL 04-17 22:29:38.388 2159-2173/com.android.defcontainer D/DefContainer: Copying /data/local/tmp/com.example.hasee.myapplication to base.apk 04-17 22:29:38.393 1541-1570/system_process I/NativeHelper: denglibo call findSupportedAbi! abiList=x86 armeabi-v7a armeabi packageName=com.example.hasee.myapplication 04-17 22:29:38.395 1541-1570/system_process D/NativeLibraryHelper: denglibo call LdFindSupportedAbi, param: supportedAbisArray=x86 armeabi-v7a armeabi 04-17 22:29:38.396 1541-1570/system_process D/NativeLibraryHelper: denglibo native LdFindSupportedAbi return! ret=-114 abi=NULL 04-17 22:29:38.409 1541-1570/system_process D/PackageManager: Renaming /data/app/vmdl270166158.tmp to /data/app/com.example.hasee.myapplication-2 04-17 22:29:38.410 1541-1561/system_process I/ActivityManager: Force stopping com.example.hasee.myapplication appid=10031 user=-1: uninstall pkg 04-17 22:29:38.417 1541-1570/system_process I/PackageManager: denglibo-scanPackageDirtyLI oldSeting(packages.xml): com.example.hasee.myapplication orig primaryCpuAbi: null secondaryCpuAbi: null cpuAbiOverride: null myOrigCpuAbi: null 04-17 22:29:38.417 1541-1570/system_process I/PackageManager: Package com.example.hasee.myapplication codePath changed from /data/app/com.example.hasee.myapplication-1 to /data/app/com.example.hasee.myapplication-2; Retaining data and using new 04-17 22:29:38.424 1541-1570/system_process I/NativeHelper: denglibo call findSupportedAbi! abiList=x86 armeabi-v7a armeabi packageName=com.example.hasee.myapplication 04-17 22:29:38.427 1541-1570/system_process D/NativeLibraryHelper: denglibo call LdFindSupportedAbi, param: supportedAbisArray=x86 armeabi-v7a armeabi 04-17 22:29:38.427 1541-1570/system_process D/NativeLibraryHelper: denglibo native LdFindSupportedAbi return! ret=-114 abi=NULL 04-17 22:29:38.428 1541-1570/system_process I/PackageManager: denglibo-copyNativeBinariesForSupportedAbi finish: copyRet = -114 04-17 22:29:38.428 1541-1570/system_process I/PackageManager: Running dexopt on: /data/app/com.example.hasee.myapplication-2/base.apk pkg=com.example.hasee.myapplication isa=x86 vmSafeMode=false 04-17 22:29:38.437 2523-2523/? I/dex2oat: /system/bin/dex2oat --zip-fd=5 --zip-location=/data/app/com.example.hasee.myapplication-2/base.apk --oat-fd=6 --oat-location=/data/dalvik-cache/x86/data@app@com.example.hasee.myapplication-2@base.apk@classes.dex --instruction-set=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=7 04-17 22:29:38.439 2523-2523/? E/libnativebridge: denglibol LoadNativeBridge error! nb_library_filename invalid! 04-17 22:29:38.517 2523-2523/? I/dex2oat: Decided to run without swap. 04-17 22:29:38.539 2523-2523/? W/dex2oat: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView 04-17 22:29:38.558 2523-2525/? W/dex2oat: Before Android 4.1, method int android.support.v7.widget.MenuPopupWindow$MenuDropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView 04-17 22:29:38.560 2523-2525/? W/dex2oat: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.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 22:29:39.453 2523-2523/? I/dex2oat: dex2oat took 1.015s (threads: 2) arena alloc=306KB java alloc=3MB native alloc=6MB free=9MB 04-17 22:29:39.454 1541-1570/system_process W/PackageManager: Code path for pkg : com.example.hasee.myapplication changing from /data/app/com.example.hasee.myapplication-1 to /data/app/com.example.hasee.myapplication-2 04-17 22:29:39.454 1541-1570/system_process W/PackageManager: Resource path for pkg : com.example.hasee.myapplication changing from /data/app/com.example.hasee.myapplication-1 to /data/app/com.example.hasee.myapplication-2 04-17 22:29:39.455 1541-1561/system_process I/ActivityManager: Force stopping com.example.hasee.myapplication appid=10031 user=-1: update pkg 04-17 22:29:39.464 1541-1570/system_process I/ActivityManager: Force stopping com.example.hasee.myapplication appid=10031 user=0: pkg removed 04-17 22:29:39.471 1752-1752/com.android.launcher3 I/art: Explicit concurrent mark sweep GC freed 1842(105KB) AllocSpace objects, 3(108KB) LOS objects, 39% free, 11MB/19MB, paused 137us total 6.681ms 04-17 22:29:39.473 1994-1994/com.android.flysilkworm I/art: Explicit concurrent mark sweep GC freed 165(6KB) AllocSpace objects, 1(36KB) LOS objects, 24% free, 8MB/11MB, paused 126us total 6.168ms 04-17 22:29:39.478 1644-1644/com.android.systemui I/art: Explicit concurrent mark sweep GC freed 17097(644KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 16MB/27MB, paused 156us total 13.779ms 04-17 22:29:39.485 1541-1587/system_process I/InputReader: Reconfiguring input devices. changes=0x00000010 04-17 22:29:39.486 1541-1587/system_process I/InputReader: Reconfiguring input devices. changes=0x00000010 04-17 22:29:39.487 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.PACKAGE_REMOVED 04-17 22:29:39.491 1541-1570/system_process W/Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value. 04-17 22:29:39.491 1541-1587/system_process I/InputReader: Reconfiguring input devices. changes=0x00000010 04-17 22:29:39.492 2093-2093/com.android.keychain W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1692 android.content.ContextWrapper.startService:516 android.content.ContextWrapper.startService:516 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2609 04-17 22:29:39.493 1752-1752/com.android.launcher3 W/Launcher: setApplicationContext called twice! old=com.android.launcher3.LauncherApplication@22977308 new=com.android.launcher3.LauncherApplication@22977308 04-17 22:29:39.494 1541-1560/system_process W/Searchables: No global search activity found 04-17 22:29:39.503 1541-1541/system_process I/art: Explicit concurrent mark sweep GC freed 83651(4MB) AllocSpace objects, 29(1129KB) LOS objects, 33% free, 15MB/23MB, paused 1.088ms total 29.050ms 04-17 22:29:39.503 1541-1541/system_process D/JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED 04-17 22:29:39.503 1541-1541/system_process D/BackupManagerService: Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.example.hasee.myapplication flg=0x4000010 (has extras) } 04-17 22:29:39.504 1541-1570/system_process I/art: WaitForGcToComplete blocked for 12.932ms for cause Explicit 04-17 22:29:39.512 1994-1994/com.android.flysilkworm I/appstore: app Not Started 04-17 22:29:39.512 1541-1541/system_process D/BackupManagerService: Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.hasee.myapplication flg=0x4000010 (has extras) } 04-17 22:29:39.512 1541-1541/system_process W/BackupManagerService: Removing schedule queue dupe of com.example.hasee.myapplication 04-17 22:29:39.513 1541-1560/system_process W/Searchables: No global search activity found 04-17 22:29:39.515 1541-1560/system_process W/VoiceInteractionManagerService: no available voice recognition services found for user 0 04-17 22:29:39.515 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.PACKAGE_ADDED 04-17 22:29:39.527 1541-1753/system_process W/BackupManagerService: dataChanged but no participant pkg='com.android.launcher3' uid=10020 04-17 22:29:39.536 1994-1994/com.android.flysilkworm I/appstore: app Not Started 04-17 22:29:39.539 1752-1752/com.android.launcher3 W/Launcher: setApplicationContext called twice! old=com.android.launcher3.LauncherApplication@22977308 new=com.android.launcher3.LauncherApplication@22977308 04-17 22:29:39.542 1541-1570/system_process I/art: Explicit concurrent mark sweep GC freed 5719(344KB) AllocSpace objects, 0(0B) LOS objects, 33% free, 15MB/23MB, paused 1.145ms total 38.299ms 04-17 22:29:39.546 2512-2512/? I/art: System.exit called, status: 0 04-17 22:29:39.547 2512-2512/? I/AndroidRuntime: VM exiting with result code 0. 04-17 22:29:39.628 1994-2199/com.android.flysilkworm I/System.out: 200 04-17 22:29:39.655 2536-2536/? I/appproc: denglibo exec app_process! cmdline: /system/bin com.android.commands.am.Am start -n com.example.hasee.myapplication/com.example.hasee.myapplication.MainActivity -a android.intent.action.MAIN -c android.intent.category.LAUNCHER 04-17 22:29:39.655 2536-2536/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<< 04-17 22:29:39.657 2536-2536/? D/AndroidRuntime: CheckJNI is OFF 04-17 22:29:39.667 2536-2536/? D/libnativebridge: PreInitializeNativeBridge name=unknown 04-17 22:29:39.679 2536-2536/? E/memtrack: Couldn't load memtrack module (No such file or directory) 04-17 22:29:39.679 2536-2536/? E/android.os.Debug: failed to load memtrack module: -2 04-17 22:29:39.694 2536-2536/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am 04-17 22:29:39.718 1541-1555/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.hasee.myapplication/.MainActivity} from uid 0 on display 0 04-17 22:29:39.719 1541-1555/system_process V/WindowManager: addAppToken: AppWindowToken{362f7eb7 token=Token{2ac5a1b6 ActivityRecord{18688551 u0 com.example.hasee.myapplication/.MainActivity t7}}} to stack=1 task=7 at 0 04-17 22:29:39.720 1541-1566/system_process V/WindowManager: Adding window Window{3c93318e u0 Starting com.example.hasee.myapplication} at 2 of 5 (after Window{fa9636f u0 com.android.launcher3/com.android.launcher3.Launcher}) 04-17 22:29:39.721 2536-2536/? D/AndroidRuntime: Shutting down VM 04-17 22:29:39.721 2536-2536/? D/libnativebridge: call UnloadNativeBridge! state=1 04-17 22:29:39.730 1541-1555/system_process I/ActivityManager: Start proc 2546:com.example.hasee.myapplication/u0a31 for activity com.example.hasee.myapplication/.MainActivity 04-17 22:29:39.731 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.TOP_ACTIVITY_CHANGED 04-17 22:29:39.748 2546-2546/? I/art: Late-enabling -Xcheck:jni 04-17 22:29:39.748 2546-2546/? D/libnativebridge: call UnloadNativeBridge! state=1 04-17 22:29:39.768 2546-2554/? I/art: Debugger is no longer active 04-17 22:29:39.861 2546-2546/? D/AndroidRuntime: Shutting down VM --------- beginning of crash 04-17 22:29:39.861 2546-2546/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.hasee.myapplication, PID: 2546 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.hasee.myapplication/com.example.hasee.myapplication.MainActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' at android.app.ListActivity.onContentChanged(ListActivity.java:243) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:382) at android.app.Activity.setContentView(Activity.java:2145) at com.example.hasee.myapplication.MainActivity.onCreate(MainActivity.java:34) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)  at android.app.ActivityThread.access$800(ActivityThread.java:151)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5254)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)  04-17 22:29:39.861 1541-1708/system_process W/ActivityManager: Force finishing activity 1 com.example.hasee.myapplication/.MainActivity 04-17 22:29:39.951 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:40.069 1365-1365/? E/EGL_adreno: tid 1365: eglCreateSyncKHR(1987): error 0x3004 (EGL_BAD_ATTRIBUTE) 04-17 22:29:40.074 1541-1541/system_process W/art: Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12135 waiters=0 for 211ms 04-17 22:29:40.074 1541-1561/system_process W/System.err: java.lang.Exception: denglibo show AlertDialog! title= 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.app.AlertDialog.show(AlertDialog.java:112) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:1342) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.os.Looper.loop(Looper.java:135) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at com.android.server.ServiceThread.run(ServiceThread.java:46) 04-17 22:29:40.106 1541-2235/system_process I/OpenGLRenderer: Initialized EGL, version 1.4 04-17 22:29:40.106 1541-2235/system_process I/EGL_adreno: eglCreateContext request GLES major-version=2 04-17 22:29:40.107 1541-2235/system_process D/EGL_adreno: eglCreateContext: 0x9edfe9a0: maj 3 min 1 rcv 4 04-17 22:29:40.111 1541-2235/system_process D/EGL_adreno: eglMakeCurrent: 0x9edfe9a0: ver 3 1 (tinfo 0xa22f8770) 04-17 22:29:40.118 1541-2235/system_process E/EGL_adreno: tid 2235: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) 04-17 22:29:40.118 1541-2235/system_process W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaec22700, error=EGL_BAD_MATCH 04-17 22:29:40.119 1541-2235/system_process D/EGL_adreno: eglMakeCurrent: 0x9edfe9a0: ver 3 1 (tinfo 0xa22f8770) 04-17 22:29:40.574 1541-1561/system_process W/ActivityManager: Activity pause timeout for ActivityRecord{18688551 u0 com.example.hasee.myapplication/.MainActivity t7 f} 04-17 22:29:40.577 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.TOP_ACTIVITY_CHANGED 04-17 22:29:40.593 1752-2049/com.android.launcher3 I/OpenGLRenderer: Initialized EGL, version 1.4 04-17 22:29:40.594 1752-2049/com.android.launcher3 I/EGL_adreno: eglCreateContext request GLES major-version=2 04-17 22:29:40.595 1752-2049/com.android.launcher3 D/EGL_adreno: eglCreateContext: 0xaec34760: maj 3 min 1 rcv 4 04-17 22:29:40.602 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:40.615 1752-2049/com.android.launcher3 E/EGL_adreno: tid 2049: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) 04-17 22:29:40.615 1752-2049/com.android.launcher3 W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaec601a0, error=EGL_BAD_MATCH 04-17 22:29:40.616 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:40.662 1752-2049/com.android.launcher3 V/RenderScript: 0xaedacc00 Launching thread(s), CPUs 2 04-17 22:29:40.798 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:29:41.146 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.157 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.160 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.160 1752-2049/com.android.launcher3 W/OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 04-17 22:29:41.161 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.578 1644-1644/com.android.systemui W/ResourceType: No package identifier when getting value for resource number 0x00000000 04-17 22:29:41.578 1644-1644/com.android.systemui W/PackageManager: Failure retrieving resources for com.example.hasee.myapplication: Resource ID #0x0 04-17 22:29:50.691 1541-1561/system_process W/ActivityManager: Activity destroy timeout for ActivityRecord{18688551 u0 com.example.hasee.myapplication/.MainActivity t7 f} 04-17 22:29:59.192 1365-1515/? E/SurfaceFlinger: warning, detect vsync overflow! 04-17 22:30:00.041 1365-1515/? E/SurfaceFlinger: warning, detect vsync overflow! 04-17 22:30:00.801 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:30:20.806 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:30:40.811 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:31:00.816 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:31:20.817 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:31:20.920 1541-1595/system_process E/WifiStateMachine: denglibo mScanResults.size=1 04-17 22:31:20.920 1541-1595/system_process I/LdWifi: ld_get_eth0_ip return 172.16.2.15 04-17 22:31:40.821 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:32:00.824 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:32:20.827 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45
android报错 not enough memory for AudioTrack size=131296
not enough memory for AudioTrack size=131296 我现在把全部音效的部分都注释了 但是还是闪退 ``` 02-16 14:12:11.350 11542-11542/? I/MicroDetectionWorker: #startMicroDetector [speakerMode: 0] 02-16 14:12:11.350 11542-11542/? I/AudioController: Using mInputStreamFactoryBuilder Created new AudioSource 02-16 14:12:11.351 11542-11542/? I/MicroDetectionWorker: onReady 02-16 14:12:11.361 11542-17983/? I/MicroRecognitionRunner: Starting detection. 02-16 14:12:11.361 11542-18036/? I/MicrophoneInputStream: mic_starting SR : 16000 CC : 16 SO : 6 02-16 14:12:11.371 10867-20742/? I/AudioFlinger: AudioFlinger's thread 0xe1483400 tid=20742 ready to run 02-16 14:12:11.371 10867-16145/? E/AudioFlinger: not enough memory for AudioTrack size=131296 02-16 14:12:11.371 10867-16145/? D/MemoryDealer: AudioTrack (0xe5e9c7f0, size=4194304) 0: 0xe5e9ccc0 | 0x00000000 | 0x000200E0 | A 1: 0xe5e9ce50 | 0x000200E0 | 0x000200E0 | A 2: 0xe47be120 | 0x000401C0 | 0x000200E0 | A 3: 0xe47be360 | 0x000602A0 | 0x000200E0 | A 4: 0xe47be4b0 | 0x00080380 | 0x000200E0 | A 5: 0xe47be630 | 0x000A0460 | 0x000200E0 | A 6: 0xe47be7b0 | 0x000C0540 | 0x000200E0 | A 7: 0xe47be960 | 0x000E0620 | 0x000200E0 | A 8: 0xe47beae0 | 0x00100700 | 0x000200E0 | A 9: 0xe5e9ce20 | 0x001207E0 | 0x000200E0 | A 10: 0xe5b07330 | 0x001408C0 | 0x000200E0 | A 11: 0xe5b074d0 | 0x001609A0 | 0x000200E0 | A 12: 0xe5b07670 | 0x00180A80 | 0x000200E0 | A 13: 0xe5b077f0 | 0x001A0B60 | 0x000200E0 | A 14: 0xe5b079b0 | 0x001C0C40 | 0x000200E0 | A 15: 0xe5b07b10 | 0x001E0D20 | 0x000200E0 | A 16: 0xe5b07cf0 | 0x00200E00 | 0x000200E0 | A 17: 0xe47bef10 | 0x00220EE0 | 0x000200E0 | A 18: 0xe447f0a0 | 0x00240FC0 | 0x000200E0 | A 19: 0xe447f290 | 0x002610A0 | 0x000200E0 | A 02-16 14:12:11.371 10867-16145/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block? 02-16 14:12:11.372 11542-18036/? E/IAudioFlinger: createRecord returned error -12 02-16 14:12:11.372 11542-18036/? E/AudioRecord: AudioFlinger could not create record track, status: -12 02-16 14:12:11.373 11542-18036/? E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12. 02-16 14:12:11.373 11542-18036/? E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object. 02-16 14:12:11.373 11542-18036/? I/MicrophoneInputStream: mic_started SR : 16000 CC : 16 SO : 6 02-16 14:12:11.375 11542-11542/? I/MicroDetectionWorker: onReady 02-16 14:12:11.376 11542-18036/? I/MicrophoneInputStream: mic_close SR : 16000 CC : 16 SO : 6 02-16 14:12:11.377 11542-17983/? I/MicroRecognitionRunner: Detection finished 02-16 14:12:11.377 11542-17983/? W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream 02-16 14:12:11.378 11542-17983/? W/ErrorProcessor: onFatalError, processing error from engine(4) com.google.android.apps.gsa.shared.speech.b.g: Error reading from input stream at com.google.android.apps.gsa.staticplugins.microdetection.d.k.a(SourceFile:91) at com.google.android.apps.gsa.staticplugins.microdetection.d.l.run(Unknown Source:14) at com.google.android.libraries.gsa.runner.a.a.b(SourceFile:32) at com.google.android.libraries.gsa.runner.a.c.call(Unknown Source:4) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.google.android.apps.gsa.shared.util.concurrent.b.g.run(Unknown Source:4) at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4) at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764) at com.google.android.apps.gsa.shared.util.concurrent.b.i.run(SourceFile:6) Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space. at com.google.android.apps.gsa.speech.audio.Tee.j(SourceFile:103) at com.google.android.apps.gsa.speech.audio.au.read(SourceFile:2) at java.io.InputStream.read(InputStream.java:101) at com.google.android.apps.gsa.speech.audio.ao.run(SourceFile:17) at com.google.android.apps.gsa.speech.audio.an.run(SourceFile:2) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266)  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)  at java.util.concurrent.FutureTask.run(FutureTask.java:266)  at com.google.android.apps.gsa.shared.util.concurrent.b.g.run(Unknown Source:4)  at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4)  at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)  at java.lang.Thread.run(Thread.java:764)  at com.google.android.apps.gsa.shared.util.concurrent.b.i.run(SourceFile:6)  02-16 14:12:11.379 11542-17983/? I/AudioController: internalShutdown 02-16 14:12:11.379 11542-12096/? I/MicroRecognitionRunner: Stopping hotword detection. 02-16 14:12:11.380 11542-11542/? I/MicroDetector: Keeping mic open: false 02-16 14:12:11.380 11542-11542/? I/MicroDetectionWorker: #onError(false) 02-16 14:12:11.380 11542-20736/? I/DeviceStateChecker: DeviceStateChecker cancelled ```
VS2017开发Android报错Could not activate JNI Handle 0x7fde595150 (key_handle 0xd3e1bc2) of Java type 'md55f3b1401088a5d32c45c48cc894c2e25/MainActivity
项目是之前别的同事做的,同事辞职了,我接手这个项目,然后在的电脑上面安装VS2017开发环境,安装完成运行就报这个错误。![图片说明](https://img-ask.csdn.net/upload/201910/19/1571468151_26448.png)
关于华为荣耀手机程序运行时闪退的问题?
关于华为荣耀手机程序运行时闪退的问题? 请大佬们帮忙看看是什么原因啊,在此先多谢各位大佬了 ``` 2019-09-06 14:08:47.726 12620-12639/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:08:47.787 1790-3421/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:08:47.940 12603-12617/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:08:47.986 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:08:48.419 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:48.425 12479-12479/? E/nt.mm:appbrand: Invalid ID 0x00000000. 2019-09-06 14:08:48.429 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:49.287 720-720/? E/Thermal-daemon: [flash_led] temp_new :39 temp_old :38 2019-09-06 14:08:49.290 720-720/? E/Thermal-daemon: Report temperature: [flash_led] temp :39 report_threshold:1 2019-09-06 14:08:49.290 720-720/? E/Thermal-daemon: [charger_ic] temp_new :40 temp_old :39 2019-09-06 14:08:49.292 720-720/? E/Thermal-daemon: Report temperature: [charger_ic] temp :40 report_threshold:1 2019-09-06 14:08:49.295 720-720/? E/Thermal-daemon: [ap] temp_new :39 temp_old :38 2019-09-06 14:08:49.298 720-720/? E/Thermal-daemon: Report temperature: [ap] temp :39 report_threshold:1 2019-09-06 14:08:49.661 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:49.811 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:08:49.821 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:50.863 12479-12568/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.225 12620-12743/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.230 12603-12747/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.800 717-12927/? E/HwExtendedCodec: mime: audio/vorbis matching compontent failed! 2019-09-06 14:08:52.827 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:08:52.844 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:52.926 724-11678/? E/OMXNodeInstance: setConfig(0xf2f29c20:google.vorbis.decoder, ??(0x6f700006)) ERROR: Undefined(0x80001001) 2019-09-06 14:08:52.929 724-11339/? E/OMXNodeInstance: setConfig(0xf2f29c20:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 2019-09-06 14:08:53.488 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.488 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.488 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.489 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.489 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.489 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.684 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:54.299 720-720/? E/Thermal-daemon: [battery] temp_new :37 temp_old :35 2019-09-06 14:08:54.301 720-720/? E/Thermal-daemon: Report temperature: [battery] temp :37 report_threshold:1 2019-09-06 14:08:54.302 720-720/? E/Thermal-daemon: [charger_ic] temp_new :41 temp_old :40 2019-09-06 14:08:54.304 720-720/? E/Thermal-daemon: Report temperature: [charger_ic] temp :41 report_threshold:1 2019-09-06 14:09:15.807 13033-11766/? A/google-breakpad: Microdump skipped (uninteresting) 2019-09-06 14:09:15.827 1790-3421/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: -----BEGIN BREAKPAD MICRODUMP----- 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: V UNKNOWN:0.0.0.0 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: O A arm 08 armv8l 4.9.111 #1 SMP PREEMPT Fri Mar 29 23:12:42 CST 2019 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: P UNKNOWN 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: G UNKNOWN 2019-09-06 14:09:15.899 13035-11766/? A/google-breakpad: H 12C00000 FFFF1000 00C4 2CE75000 6DFBE000 0C:41 0D:31 0E:19 0F:10 10:0E 11:04 12:0C 13:02 14:01 15:03 16:01 17:01 1C:01 1D:02 2019-09-06 14:09:15.899 13035-11766/? A/google-breakpad: -----starting crashing thread----- 2019-09-06 14:09:15.914 11758-11766/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6ab0bc in tid 11766 (FinalizerDaemon), pid 11758 (ncent.tmgp.zrwp) 2019-09-06 14:09:15.950 1313-12028/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.041 13042-13042/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: Build fingerprint: 'HONOR/STF-AL00/HWSTF:9/HUAWEISTF-AL00/179C00R1:user/release-keys' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: Revision: '0' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: ABI: 'arm' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: pid: 11758, tid: 11766, name: FinalizerDaemon >>> com.tencent.tmgp.zrwp <<< 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6ab0bc 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r0 006ab0b8 r1 00000000 r2 006ab0b8 r3 6a6099ca 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r4 006ab0b8 r5 00000000 r6 e93e01d8 r7 e93e01d8 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r8 00000000 r9 00000000 r10 e93e01ec r11 6f92ef18 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: ip eaeecd08 sp c7ee04e0 lr e934af41 pc e934aefc 2019-09-06 14:09:16.071 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: backtrace: 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #00 pc 0002fefc /system/lib/libcrypto.so (ASN1_primitive_free+36) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #01 pc 0002ff3d /system/lib/libcrypto.so (ASN1_primitive_free+100) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #02 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #03 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #04 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #05 pc 0002fcad /system/lib/libcrypto.so (ASN1_item_free+20) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #06 pc 000160c3 /system/framework/arm/boot-conscrypt.oat (offset 0x16000) (com.android.org.conscrypt.NativeCrypto.ASN1_TIME_to_Calendar [DEDUPED]+130) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #07 pc 0002e027 /system/framework/arm/boot-conscrypt.oat (offset 0x16000) (com.android.org.conscrypt.OpenSSLX509Certificate.finalize+70) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #08 pc 0018f7bf /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$FinalizerDaemon.doFinalize+86) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #09 pc 0018fa1b /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$FinalizerDaemon.runInternal+466) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #10 pc 0012b2ab /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$Daemon.run+66) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #11 pc 00270911 /system/framework/arm/boot.oat (offset 0x132000) (java.lang.Thread.run+64) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #12 pc 00430375 /system/lib/libart.so (art_quick_invoke_stub_internal+68) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #13 pc 004091a1 /system/lib/libart.so (art_quick_invoke_stub+224) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #14 pc 000a4901 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #15 pc 00365029 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #16 pc 00365dbd /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+316) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #17 pc 00387d19 /system/lib/libart.so (art::Thread::CreateCallback(void*)+900) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #18 pc 00065ab3 /system/lib/libc.so (__pthread_start(void*)+22) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #19 pc 0001e975 /system/lib/libc.so (__start_thread+32) 2019-09-06 14:09:16.099 11758-11758/? E/ncent.tmgp.zrw: No implementation found for java.lang.String com.tencent.bugly.crashreport.crash.jni.NativeCrashHandler.regist(java.lang.String, boolean, int) (tried Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist and Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist__Ljava_lang_String_2ZI) 2019-09-06 14:09:16.242 1313-4246/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.386 1845-1861/? E/OPCollectLog: HwForegroundAppAction:duplicate pkgName. 2019-09-06 14:09:16.416 11758-13071/? E/ncent.tmgp.zrw: No implementation found for java.lang.String com.tencent.bugly.crashreport.crash.jni.NativeCrashHandler.regist(java.lang.String, boolean, int) (tried Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist and Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist__Ljava_lang_String_2ZI) 2019-09-06 14:09:16.459 11758-11819/? E/AwareLog: eglSlice: report time too small 2019-09-06 14:09:17.018 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:17.029 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:17.037 629-629/? E/HWComposer: presentAndGetReleaseFences: present failed for display 0: NotValidated (7) 2019-09-06 14:09:17.052 733-733/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_02 2019-09-06 14:09:17.062 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.090 623-623/? E/TS_Service: hwTsSetAftAlgoOrientation 2019-09-06 14:09:17.103 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.103 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.109 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.110 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.110 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.111 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.152 725-805/? E/AwareLog: iawared: change_property_content open /proc/11758/task/11799/static_vip fail errno(2)! 2019-09-06 14:09:17.170 1881-3034/? E/AwareLog: SPKSchedFeature: Uid has been sent, ignore. 2019-09-06 14:09:17.200 1313-1499/? E/InputDispatcher: channel '316a469 com.tencent.tmgp.zrwp/com.tencent.midas.proxyactivity.APMidasPayProxyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.200 1313-1499/? E/InputDispatcher: channel '601333 com.tencent.tmgp.zrwp/com.tencent.midas.proxyactivity.APMidasPayProxyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.214 1881-3092/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null 2019-09-06 14:09:17.229 1313-1499/? E/InputDispatcher: channel 'c46b993 com.tencent.tmgp.zrwp/com.xmen.main.AppActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.297 1313-1352/? E/ActivityManager: Failed to schedule configuration change android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:1147) at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:1900) at android.app.servertransaction.ClientTransaction.schedule(ClientTransaction.java:129) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:47) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:100) at com.android.server.am.ActivityManagerService.updateGlobalConfigurationLocked(ActivityManagerService.java:24536) at com.android.server.am.ActivityManagerService.updateDisplayOverrideConfigurationLocked(ActivityManagerService.java:24650) at com.android.server.am.ActivityManagerService.updateDisplayOverrideConfiguration(ActivityManagerService.java:24615) at com.android.server.wm.WindowManagerService.sendNewConfiguration(WindowManagerService.java:5075) at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:5606) at android.os.Handler.dispatchMessage(Handler.java:109) at android.os.Looper.loop(Looper.java:207) at android.os.HandlerThread.run(HandlerThread.java:65) at com.android.server.ServiceThread.run(ServiceThread.java:44) 2019-09-06 14:09:17.308 9088-9088/? E/HiBoard_LauncherOverlayService: IllegalArgumentException, mWorkspace have not attach,errmsg:View=com.huawei.intelligent.ui.view.Workspace{80ef296 V.E...... ......I. 0,0-0,0} not attached to window manager 2019-09-06 14:09:17.320 9101-9101/? E/HiSearch9.11.6.301: [LauncherOverlayService]: IllegalArgumentException, mWorkspace have not attach and e: View=com.huawei.search.ui.views.Workspace{6b052d5 VFE...C.. ......I. 0,0-0,0} not attached to window manager 2019-09-06 14:09:17.326 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.326 1881-3092/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null 2019-09-06 14:09:17.330 1790-1992/? E/Hicom_PolicyCenterService: handleAppDied. null == mMultipathAppsMap 2019-09-06 14:09:17.337 1790-1992/? E/XEngineMpipControl: Invalid SubId 2019-09-06 14:09:17.351 12661-12661/? E/DataSrv-9.3.0.304-O-0709-00:28-PackageUtils: NameNotFoundException: service apk is not installed 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: unknown message:157 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: change_property_content open /proc/11758/task/11796/static_vip fail errno(2)! 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: getProcCpuset open /proc/11758/task/11758/cpuset fail errno(2)! 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: getProcCpuset open /proc/11758/task/11758/cpuset fail errno(2)! 2019-09-06 14:09:17.363 1790-1811/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:17.401 1914-2088/? E/HwLauncher: SettingsEx , no such field. 2019-09-06 14:09:17.404 1675-1675/? E/ndroid.systemu: No package ID ff found for ID 0xffffffff. 2019-09-06 14:09:17.413 1675-1675/? E/ndroid.systemu: No package ID ff found for ID 0xffffffff. 2019-09-06 14:09:17.422 1790-1811/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:17.424 4509-4703/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false! 2019-09-06 14:09:17.469 1313-1813/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc 2019-09-06 14:09:17.474 13106-13106/? E/ndroid.contact: Not starting debugger since process cannot load the jdwp agent. 2019-09-06 14:09:17.498 3861-3861/? E/UI-KeyboardView: EnShiftState.reset() failed! mKeyboard is null 2019-09-06 14:09:17.500 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.604 3861-3861/? E/CrashInfoComponent: [ SogouIME:onInitializeInterface 2019-09-06 14:09:17:595 ] 2019-09-06 14:09:17.604 3861-3861/? E/CrashInfoComponent: [ MainImeServiceDel:onInitializeInterface start 2019-09-06 14:09:17:604 ] 2019-09-06 14:09:17.705 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:17.757 13106-13131/? E/Contacts: RcsFeatureManager isRcsEnabled = true 2019-09-06 14:09:17.812 3861-3861/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/com.sohu.inputmethod.sogou/files/.theme/sogou_custom/res/composing_bg.png (No such file or directory) 2019-09-06 14:09:17.814 1313-1813/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc 2019-09-06 14:09:17.819 13140-13140/? E/d.process.acor: Not starting debugger since process cannot load the jdwp agent. 2019-09-06 14:09:17.831 3861-3861/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/com.sohu.inputmethod.sogou/files/.theme/sogou_custom/res/composing_bg.png (No such file or directory) 2019-09-06 14:09:17.847 1790-26786/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.901 13106-13122/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:09:18.205 13106-13106/? E/Contacts: AlphaScroller Resources.NotFoundException in AlphaScroller 2019-09-06 14:09:18.212 13106-13106/? E/Contacts: AlphaScroller Resources.NotFoundException in AlphaScroller 2019-09-06 14:09:18.242 13106-13106/? E/SQLiteLog: (1) 2019-09-06 14:09:18.242 13106-13106/? E/Contacts: ContactsAppProvider makeInsertOperation gets SQLiteException. 2019-09-06 14:09:18.297 13140-13156/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:09:18.374 732-899/? E/JankService: JankFrequencyMonitor action return :0 2019-09-06 14:09:18.826 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:18.827 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:18.897 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:19.553 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.554 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:19.554 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.554 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:19.555 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.555 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:20.035 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:20.047 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:21.561 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.562 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:21.562 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.562 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:21.563 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.563 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.054 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:23.067 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:23.090 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.090 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.092 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.092 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.093 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.093 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.094 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.095 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.096 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.096 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.097 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.097 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.099 1845-2036/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =130 lastSpdLev=3 index=3 2019-09-06 14:09:23.102 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.102 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.102 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.103 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.104 1313-1667/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10097 has no location permission 2019-09-06 14:09:23.105 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.105 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:24.333 720-720/? E/Thermal-daemon: [battery] temp_new :36 temp_old :35 2019-09-06 14:09:24.334 720-720/? E/Thermal-daemon: Report temperature: [battery] temp :36 report_threshold:1 ```
Execution failed for task 'packageDebug'.
Warning:Ignoring Android API artifact com.google.android:android:2.1_r1 for debug Error:Execution failed for task ':xxx:packageDebug'. > android/util/Log Information:BUILD FAILED 直接在android studio里面启动或者debug就会产生上面的错误,但是能通过gradle命令安装到手机上,请问哪位大侠雨果这个错我,请告知一下,谢谢 主Module的build.gradle配置 //repositories { // mavenLocal() // mavenCentral() //} android { // useLibrary 'org.apache.http.legacy' buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { // multiDexEnabled true } } packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } } configurations { all { exclude module: 'httpclient' exclude module: 'commons-logging' } } dependencies { compile 'com.google.protobuf:protobuf-java:2.5.0' compile 'com.android.support:appcompat-v7:19.+' compile 'com.nineoldandroids:library:2.4.+' compile 'com.google.zxing:core:3.1.0@jar' compile 'com.android.support:multidex:1.0.0' compile('com.github.tony19:logback-android-classic:1.0.10-2@jar') { // Work around for gradle 0.9 and 0.10 transitive = true } // compile project(':bitherj') compile (project(':bitherj')){ exclude group: 'org.json', module: 'json' exclude group: 'com.google.android' } // compile ('com.github.nkzawa:socket.io-client:0.4.1'){ // exclude group: 'org.json', module: 'json' // } compile project(':wheel') compile project(':android-charts') //加入日志依赖 // compile 'org.slf4j:slf4j-api:1.7.25' } 整个项目的build.gradle apply plugin: 'com.android.library' buildscript { repositories { jcenter() mavenCentral() // maven { // url 'https://maven.google.com/' // name 'Google' // } } dependencies { // classpath 'com.android.tools.build:gradle:2.3.2' // classpath 'com.android.tools.build:gradle:3.0.0' classpath 'com.android.tools.build:gradle:2.2.2' } } project(':bither-android') { apply plugin: 'android' } project(':wheel') { apply plugin: 'com.android.library' } project(':android-charts') { apply plugin: 'com.android.library' } project(':bitherj') { apply plugin: 'java' } subprojects { android { compileSdkVersion 22 buildToolsVersion '26.0.2' defaultConfig { // minSdkVersion 9 minSdkVersion 15 targetSdkVersion 22 multiDexEnabled true } dexOptions { preDexLibraries = false additionalParameters = ['--core-library'] } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] jniLibs.srcDirs = ['native-libs'] jni.srcDirs = [] } // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similar customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } packagingOptions { exclude 'META-INF/NOTICE.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' exclude 'org/apache/http/entity/mime/version.properties' exclude 'org/apache/http/version.properties' exclude 'lib/x86_64/darwin/libscrypt.dylib' exclude 'lib/x86_64/freebsd/libscrypt.so' exclude 'lib/x86_64/linux/libscrypt.so' } lintOptions { abortOnError false disable "ResourceType" } } } //repositories { // maven { // url 'https://maven.google.com/' // name 'Google' // } //} allprojects { repositories { jcenter() maven { url 'https://maven.google.com' } } }
SDL2 编译报错error: undefined reference to 'openslES_ResumeDevices' 求解决思路
android studio编译SDL2生成.so文件时,报错如下: ``` Build command failed. Error while executing process /Users/ing/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/Application.mk APP_ABI=x86_64 NDK_ALL_ABIS=x86_64 NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/lib /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/libSDL2.so} [x86_64] Compile : SDL2 <= SDL.c [x86_64] Compile : SDL2 <= SDL_assert.c [x86_64] Compile : SDL2 <= SDL_dataqueue.c [x86_64] Compile : SDL2 <= SDL_error.c [x86_64] Compile : SDL2 <= SDL_hints.c [x86_64] Compile : SDL2 <= SDL_log.c [x86_64] Compile : SDL2 <= SDL_audio.c [x86_64] Compile : SDL2 <= SDL_audiocvt.c [x86_64] Compile : SDL2 <= SDL_audiodev.c [x86_64] Compile : SDL2 <= SDL_audiotypecvt.c [x86_64] Compile : SDL2 <= SDL_mixer.c [x86_64] Compile : SDL2 <= SDL_wave.c [x86_64] Compile : SDL2 <= SDL_androidaudio.c [x86_64] Compile : SDL2 <= SDL_dummyaudio.c [x86_64] Compile : SDL2 <= SDL_atomic.c [x86_64] Compile : SDL2 <= SDL_spinlock.c [x86_64] Compile : SDL2 <= SDL_android.c [x86_64] Compile : SDL2 <= SDL_cpuinfo.c [x86_64] Compile : SDL2 <= SDL_dynapi.c [x86_64] Compile : SDL2 <= SDL_clipboardevents.c [x86_64] Compile : SDL2 <= SDL_displayevents.c [x86_64] Compile : SDL2 <= SDL_dropevents.c [x86_64] Compile : SDL2 <= SDL_events.c /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:285:59: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERDOWN) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:282:50: note: expanded from macro 'PRINT_FINGER_EVENT' (uint) event->tfinger.timestamp, event->tfinger.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:285:59: warning: format specifies type 'long long' but the argument has type 'SDL_FingerID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERDOWN) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:283:17: note: expanded from macro 'PRINT_FINGER_EVENT' event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:286:57: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERUP) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:282:50: note: expanded from macro 'PRINT_FINGER_EVENT' (uint) event->tfinger.timestamp, event->tfinger.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:286:57: warning: format specifies type 'long long' but the argument has type 'SDL_FingerID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERUP) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:283:17: note: expanded from macro 'PRINT_FINGER_EVENT' event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:287:61: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERMOTION) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:282:50: note: expanded from macro 'PRINT_FINGER_EVENT' (uint) event->tfinger.timestamp, event->tfinger.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:287:61: warning: format specifies type 'long long' but the argument has type 'SDL_FingerID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERMOTION) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:283:17: note: expanded from macro 'PRINT_FINGER_EVENT' event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:295:62: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARGESTURE) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:292:51: note: expanded from macro 'PRINT_DOLLAR_EVENT' (uint) event->dgesture.timestamp, event->dgesture.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:295:62: warning: format specifies type 'long long' but the argument has type 'SDL_GestureID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARGESTURE) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:293:17: note: expanded from macro 'PRINT_DOLLAR_EVENT' event->dgesture.gestureId, (uint) event->dgesture.numFingers, \ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:296:61: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARRECORD) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:292:51: note: expanded from macro 'PRINT_DOLLAR_EVENT' (uint) event->dgesture.timestamp, event->dgesture.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:296:61: warning: format specifies type 'long long' but the argument has type 'SDL_GestureID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARRECORD) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:293:17: note: expanded from macro 'PRINT_DOLLAR_EVENT' event->dgesture.gestureId, (uint) event->dgesture.numFingers, \ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:301:51: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] (uint) event->mgesture.timestamp, event->mgesture.touchId, ^~~~~~~~~~~~~~~~~~~~~~~ 11 warnings generated. [x86_64] Compile : SDL2 <= SDL_gesture.c [x86_64] Compile : SDL2 <= SDL_keyboard.c [x86_64] Compile : SDL2 <= SDL_mouse.c [x86_64] Compile : SDL2 <= SDL_quit.c [x86_64] Compile : SDL2 <= SDL_touch.c [x86_64] Compile : SDL2 <= SDL_windowevents.c [x86_64] Compile : SDL2 <= SDL_rwops.c [x86_64] Compile : SDL2 <= SDL_haptic.c [x86_64] Compile : SDL2 <= SDL_syshaptic.c [x86_64] Compile : SDL2 <= SDL_gamecontroller.c [x86_64] Compile : SDL2 <= SDL_joystick.c [x86_64] Compile : SDL2 <= SDL_sysjoystick.c [x86_64] Compile : SDL2 <= SDL_hidapi_ps4.c [x86_64] Compile : SDL2 <= SDL_hidapi_switch.c [x86_64] Compile : SDL2 <= SDL_hidapi_xbox360.c [x86_64] Compile : SDL2 <= SDL_hidapi_xboxone.c [x86_64] Compile : SDL2 <= SDL_hidapijoystick.c [x86_64] Compile : SDL2 <= SDL_sysloadso.c [x86_64] Compile : SDL2 <= SDL_power.c [x86_64] Compile : SDL2 <= SDL_syspower.c [x86_64] Compile : SDL2 <= SDL_sysfilesystem.c [x86_64] Compile : SDL2 <= SDL_sensor.c [x86_64] Compile : SDL2 <= SDL_androidsensor.c [x86_64] Compile : SDL2 <= SDL_d3dmath.c [x86_64] Compile : SDL2 <= SDL_render.c [x86_64] Compile : SDL2 <= SDL_yuv_sw.c [x86_64] Compile : SDL2 <= SDL_render_d3d.c [x86_64] Compile : SDL2 <= SDL_shaders_d3d.c [x86_64] Compile : SDL2 <= SDL_render_d3d11.c [x86_64] Compile : SDL2 <= SDL_shaders_d3d11.c [x86_64] Compile : SDL2 <= SDL_render_gl.c [x86_64] Compile : SDL2 <= SDL_shaders_gl.c [x86_64] Compile : SDL2 <= SDL_render_gles.c [x86_64] Compile : SDL2 <= SDL_render_gles2.c In file included from /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/render/opengles2/SDL_render_gles2.c:273: /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/render/opengles2/SDL_gles2funcs.h:58:1: warning: incompatible pointer types assigning to 'void (*)(GLuint, GLsizei, const GLchar **, const GLint *)' (aka 'void (*)(unsigned int, int, const char **, const int *)') from 'void (GLuint, GLsizei, const GLchar *const *, const GLint *)' (aka 'void (unsigned int, int, const char *const *, const int *)') [-Wincompatible-pointer-types] SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar **, const GLint *)) ^ ~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/render/opengles2/SDL_render_gles2.c:262:45: note: expanded from macro 'SDL_PROC' #define SDL_PROC(ret,func,params) data->func=func; ^~~~~ 1 warning generated. [x86_64] Compile : SDL2 <= SDL_shaders_gles2.c [x86_64] Compile : SDL2 <= SDL_render_psp.c [x86_64] Compile : SDL2 <= SDL_blendfillrect.c [x86_64] Compile : SDL2 <= SDL_blendline.c [x86_64] Compile : SDL2 <= SDL_blendpoint.c [x86_64] Compile : SDL2 <= SDL_drawline.c [x86_64] Compile : SDL2 <= SDL_drawpoint.c [x86_64] Compile : SDL2 <= SDL_render_sw.c [x86_64] Compile : SDL2 <= SDL_rotate.c [x86_64] Compile : SDL2 <= SDL_getenv.c [x86_64] Compile : SDL2 <= SDL_iconv.c [x86_64] Compile : SDL2 <= SDL_malloc.c [x86_64] Compile : SDL2 <= SDL_qsort.c [x86_64] Compile : SDL2 <= SDL_stdlib.c [x86_64] Compile : SDL2 <= SDL_string.c [x86_64] Compile : SDL2 <= SDL_thread.c [x86_64] Compile : SDL2 <= SDL_syscond.c [x86_64] Compile : SDL2 <= SDL_sysmutex.c [x86_64] Compile : SDL2 <= SDL_syssem.c [x86_64] Compile : SDL2 <= SDL_systhread.c [x86_64] Compile : SDL2 <= SDL_systls.c [x86_64] Compile : SDL2 <= SDL_timer.c [x86_64] Compile : SDL2 <= SDL_systimer.c [x86_64] Compile : SDL2 <= SDL_RLEaccel.c [x86_64] Compile : SDL2 <= SDL_blit.c [x86_64] Compile : SDL2 <= SDL_blit_0.c [x86_64] Compile : SDL2 <= SDL_blit_1.c [x86_64] Compile : SDL2 <= SDL_blit_A.c [x86_64] Compile : SDL2 <= SDL_blit_N.c [x86_64] Compile : SDL2 <= SDL_blit_auto.c [x86_64] Compile : SDL2 <= SDL_blit_copy.c [x86_64] Compile : SDL2 <= SDL_blit_slow.c [x86_64] Compile : SDL2 <= SDL_bmp.c [x86_64] Compile : SDL2 <= SDL_clipboard.c [x86_64] Compile : SDL2 <= SDL_egl.c [x86_64] Compile : SDL2 <= SDL_fillrect.c [x86_64] Compile : SDL2 <= SDL_pixels.c [x86_64] Compile : SDL2 <= SDL_rect.c [x86_64] Compile : SDL2 <= SDL_shape.c [x86_64] Compile : SDL2 <= SDL_stretch.c [x86_64] Compile : SDL2 <= SDL_surface.c [x86_64] Compile : SDL2 <= SDL_video.c [x86_64] Compile : SDL2 <= SDL_vulkan_utils.c [x86_64] Compile : SDL2 <= SDL_yuv.c [x86_64] Compile : SDL2 <= SDL_androidclipboard.c [x86_64] Compile : SDL2 <= SDL_androidevents.c [x86_64] Compile : SDL2 <= SDL_androidgl.c [x86_64] Compile : SDL2 <= SDL_androidkeyboard.c [x86_64] Compile : SDL2 <= SDL_androidmessagebox.c [x86_64] Compile : SDL2 <= SDL_androidmouse.c [x86_64] Compile : SDL2 <= SDL_androidtouch.c [x86_64] Compile : SDL2 <= SDL_androidvideo.c [x86_64] Compile : SDL2 <= SDL_androidvulkan.c [x86_64] Compile : SDL2 <= SDL_androidwindow.c [x86_64] Compile : SDL2 <= yuv_rgb.c [x86_64] Compile : SDL2 <= SDL_test_assert.c [x86_64] Compile : SDL2 <= SDL_test_common.c [x86_64] Compile : SDL2 <= SDL_test_compare.c [x86_64] Compile : SDL2 <= SDL_test_crc32.c [x86_64] Compile : SDL2 <= SDL_test_font.c [x86_64] Compile : SDL2 <= SDL_test_fuzzer.c [x86_64] Compile : SDL2 <= SDL_test_harness.c [x86_64] Compile : SDL2 <= SDL_test_imageBlit.c [x86_64] Compile : SDL2 <= SDL_test_imageBlitBlend.c [x86_64] Compile : SDL2 <= SDL_test_imageFace.c [x86_64] Compile : SDL2 <= SDL_test_imagePrimitives.c [x86_64] Compile : SDL2 <= SDL_test_imagePrimitivesBlend.c [x86_64] Compile : SDL2 <= SDL_test_log.c [x86_64] Compile : SDL2 <= SDL_test_md5.c [x86_64] Compile : SDL2 <= SDL_test_memory.c [x86_64] Compile : SDL2 <= SDL_test_random.c [x86_64] Compile++ : hidapi <= hid.cpp [x86_64] Prebuilt : libc++_shared.so <= <NDK>/sources/cxx-stl/llvm-libc++/libs/x86_64/ [x86_64] SharedLibrary : libhidapi.so [x86_64] SharedLibrary : libSDL2.so /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/objs-debug/SDL2/src/audio/SDL_audio.o:SDL_audio.c:bootstrap: error: undefined reference to 'openslES_bootstrap' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:105: error: undefined reference to 'openslES_PauseDevices' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:112: error: undefined reference to 'openslES_ResumeDevices' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:156: error: undefined reference to 'openslES_PauseDevices' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:167: error: undefined reference to 'openslES_ResumeDevices' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/libSDL2.so] Error 1 ``` 感觉是调用opengl 的相关库时报错,未引用。请教有遇到过此类问题的或者有解决思路的,请不吝赐教。。
opencv 在as ndk中 始终抱找不到 undefined reference to 'cv::imwrite
就这几行简单的代码编译都不通过 ``` #include"opencv2/opencv.hpp" using namespace cv; int sss() { Mat image= imread( "1", CV_LOAD_IMAGE_COLOR); imwrite("2.bmp",image); return 1; } ``` CMakeLists 文件 ``` cmake_minimum_required(VERSION 3.4.1) add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) set(CMAKE_VERBOSE_MAKEFILE on) set(ocvlibs "C:\\BC\\OpenCV\\sdk\\native\\libs") # 设置include文件夹的地址 include_directories(C:/BC/lua-5.2.0/src) include_directories(C:\\BC\\OpenCV\\sdk\\native\\jni\\include) add_library(native-lib SHARED native-lib.cpp) # 设置opencv的动态库 add_library(libopencv_java SHARED IMPORTED ) set_target_properties(libopencv_java PROPERTIES IMPORTED_LOCATION "${ocvlibs}/${ANDROID_ABI}/libopencv_java3.so") find_library(log-lib log) target_link_libraries(native-lib android log libopencv_java ${log-lib} ) ``` build.gradle ``` apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.opencvtest" minSdkVersion 22 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { cppFlags "-std=c++11", "-frtti", "-fexceptions" abiFilters 'x86' } } } sourceSets{ main{ jniLibs.srcDirs = ['C:\\BC\\OpenCV\\sdk\\native\\libs'] } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" version "3.10.2" } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } ``` ![图片说明](https://img-ask.csdn.net/upload/201906/03/1559539210_344978.png)
signal 6 (SIGABRT), code -6 (SI_TKILL)错误,需要addr2line定位错误代码的详细步骤
crash proc name : Thread-5 happen time : 2019-04-03 10:48:37 <<logcat trace info>> cannot get valid ams trace info this time. <<stack trace info>> pid: 2692, tid: 2733, name: Thread-5 >>> com.mxpipe.lih.mxpipe <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- Abort message: 'java_vm_ext.cc:534] JNI DETECTED ERROR IN APPLICATION: JNI NewStringUTF called with pending exception java.lang.NumberFormatException: empty String' r0 00000000 r1 00000aad r2 00000006 r3 00000008 r4 00000a84 r5 00000aad r6 c29ff5ac r7 0000010c r8 00000000 r9 e58991b8 sl 0000000a fp c29ff5f8 ip c9545440 sp c29ff598 lr e6ca9cad pc e6ca374e cpsr 200f0030 backtrace: #00 pc 0001a74e /system/lib/libc.so (abort+63) #01 pc 0035ba5d /system/lib/libart.so (art::Runtime::Abort(char const*)+392) #02 pc 0041b82d /system/lib/libart.so (android::base::LogMessage::~LogMessage()+452) #03 pc 0024ddf5 /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1212) #04 pc 0024df77 /system/lib/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+58) #05 pc 000d609b /system/lib/libart.so (art::ScopedCheck::AbortF(char const*, ...)+42) #06 pc 000d5c1b /system/lib/libart.so (art::ScopedCheck::CheckThread(_JNIEnv*)+274) #07 pc 000d45c5 /system/lib/libart.so (art::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::JniValueType*)+596) #08 pc 000ccd57 /system/lib/libart.so (art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+438) #09 pc 00bc7071 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #10 pc 00bc7105 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #11 pc 00bb072d /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #12 pc 00bb07d3 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #13 pc 00bcdeb9 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #14 pc 00be3f21 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #15 pc 022777c5 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #16 pc 022773eb /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #17 pc 02277779 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #18 pc 02277791 /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #19 pc 0255854b /data/app/com.mxpipe.lih.mxpipe-BLdMLJLFE4s9FKr_u1cgKA==/base.apk (offset 0x500b000) #20 pc 00047a1f /system/lib/libc.so (__pthread_start(void*)+22) #21 pc 0001b31d /system/lib/libc.so (__start_thread+32) 想用ndk中的addr2line来定位错误代码位置,但是不知道所需要的.so文件到底是哪个到底在哪里,项目中有引用aar包。 希望有大佬能解答一下,感谢万分!
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
【JSON解析】浅谈JSONObject的使用
简介 在程序开发过程中,在参数传递,函数返回值等方面,越来越多的使用JSON。JSON(JavaScript Object Notation)是一种轻量级的数据交换格式,同时也易于机器解析和生成、易于理解、阅读和撰写,而且Json采用完全独立于语言的文本格式,这使得Json成为理想的数据交换语言。 JSON建构于两种结构: “名称/值”对的集合(A Collection of name/va...
程序员请照顾好自己,周末病魔差点一套带走我。
程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。
卸载 x 雷某度!GitHub 标星 1.5w+,从此我只用这款全能高速下载工具!
作者 | Rocky0429 来源 | Python空间 大家好,我是 Rocky0429,一个喜欢在网上收集各种资源的蒟蒻… 网上资源眼花缭乱,下载的方式也同样千奇百怪,比如 BT 下载,磁力链接,网盘资源等等等等,下个资源可真不容易,不一样的方式要用不同的下载软件,因此某比较有名的 x 雷和某度网盘成了我经常使用的工具。 作为一个没有钱的穷鬼,某度网盘几十 kb 的下载速度让我...
只因接了一个电话,程序员被骗 30 万!
今天想给大家说一个刚刚发生在我身边的一起真实的诈骗经历,我的朋友因此被骗走30万。注:为了保护当事人隐私,部分情节进行了修改。1平安夜突来的电话开始以为就像普通的诈骗一样,想办法让你把钱...
我一个37岁的程序员朋友
周末了,人一旦没有点事情干,心里就瞎想,而且跟几个老男人坐在一起,更容易瞎想,我自己现在也是 30 岁了,也是无时无刻在担心自己的职业生涯,担心丢掉工作没有收入,担心身体机能下降,担心突...
python自动下载图片
近日闲来无事,总有一种无形的力量萦绕在朕身边,让朕精神涣散,昏昏欲睡。 可是,像朕这么有职业操守的社畜怎么能在上班期间睡瞌睡呢,我不禁陷入了沉思。。。。 突然旁边的IOS同事问:‘嘿,兄弟,我发现一个网站的图片很有意思啊,能不能帮我保存下来提升我的开发灵感?’ 作为一个坚强的社畜怎么能说自己不行呢,当时朕就不假思索的答应:‘oh, It’s simple. Wait for me for a ...
一名大专同学的四个问题
【前言】   收到一封来信,赶上各种事情拖了几日,利用今天要放下工作的时机,做个回复。   2020年到了,就以这一封信,作为开年标志吧。 【正文】   您好,我是一名现在有很多困惑的大二学生。有一些问题想要向您请教。   先说一下我的基本情况,高考失利,不想复读,来到广州一所大专读计算机应用技术专业。学校是偏艺术类的,计算机专业没有实验室更不用说工作室了。而且学校的学风也不好。但我很想在计算机领...
复习一周,京东+百度一面,不小心都拿了Offer
京东和百度一面都问了啥,面试官百般刁难,可惜我全会。
Java 14 都快来了,为什么还有这么多人固守Java 8?
从Java 9开始,Java版本的发布就让人眼花缭乱了。每隔6个月,都会冒出一个新版本出来,Java 10 , Java 11, Java 12, Java 13, 到2020年3月份,...
达摩院十大科技趋势发布:2020 非同小可!
【CSDN编者按】1月2日,阿里巴巴发布《达摩院2020十大科技趋势》,十大科技趋势分别是:人工智能从感知智能向认知智能演进;计算存储一体化突破AI算力瓶颈;工业互联网的超融合;机器间大规模协作成为可能;模块化降低芯片设计门槛;规模化生产级区块链应用将走入大众;量子计算进入攻坚期;新材料推动半导体器件革新;保护数据隐私的AI技术将加速落地;云成为IT技术创新的中心 。 新的画卷,正在徐徐展开。...
轻松搭建基于 SpringBoot + Vue 的 Web 商城应用
首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute): 函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。Fun: Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API ...
讲真,这两个IDE插件,可以让你写出质量杠杠的代码
周末躺在床上看《拯救大兵瑞恩》 周末在闲逛的时候,发现了两个优秀的 IDE 插件,据说可以提高代码的质量,我就安装了一下,试了试以后发现,确实很不错,就推荐给大家。 01、Alibaba Java 代码规范插件 《阿里巴巴 Java 开发手册》,相信大家都不会感到陌生,其 IDEA 插件的下载次数据说达到了 80 万次,我今天又贡献了一次。嘿嘿。 该项目的插件地址: https://github....
Python+OpenCV实时图像处理
目录 1、导入库文件 2、设计GUI 3、调用摄像头 4、实时图像处理 4.1、阈值二值化 4.2、边缘检测 4.3、轮廓检测 4.4、高斯滤波 4.5、色彩转换 4.6、调节对比度 5、退出系统 初学OpenCV图像处理的小伙伴肯定对什么高斯函数、滤波处理、阈值二值化等特性非常头疼,这里给各位分享一个小项目,可通过摄像头实时动态查看各类图像处理的特点,也可对各位调参、测试...
2020年一线城市程序员工资大调查
人才需求 一线城市共发布岗位38115个,招聘120827人。 其中 beijing 22805 guangzhou 25081 shanghai 39614 shenzhen 33327 工资分布 2020年中国一线城市程序员的平均工资为16285元,工资中位数为14583元,其中95%的人的工资位于5000到20000元之间。 和往年数据比较: yea...
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢? 我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果: 搜索一下:产品经理猝死,只有400万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
害怕面试被问HashMap?这一篇就搞定了!
声明:本文以jdk1.8为主! 搞定HashMap 作为一个Java从业者,面试的时候肯定会被问到过HashMap,因为对于HashMap来说,可以说是Java集合中的精髓了,如果你觉得自己对它掌握的还不够好,我想今天这篇文章会非常适合你,至少,看了今天这篇文章,以后不怕面试被问HashMap了 其实在我学习HashMap的过程中,我个人觉得HashMap还是挺复杂的,如果真的想把它搞得明明白...
毕业5年,我问遍了身边的大佬,总结了他们的学习方法
我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。
python爬取百部电影数据,我分析出了一个残酷的真相
2019年就这么匆匆过去了,就在前几天国家电影局发布了2019年中国电影市场数据,数据显示去年总票房为642.66亿元,同比增长5.4%;国产电影总票房411.75亿元,同比增长8.65%,市场占比 64.07%;城市院线观影人次17.27亿,同比增长0.64%。 看上去似乎是一片大好对不对?不过作为一名严谨求实的数据分析师,我从官方数据中看出了一点端倪:国产票房增幅都已经高达8.65%了,为什...
推荐10个堪称神器的学习网站
每天都会收到很多读者的私信,问我:“二哥,有什么推荐的学习网站吗?最近很浮躁,手头的一些网站都看烦了,想看看二哥这里有什么新鲜货。” 今天一早做了个恶梦,梦到被老板辞退了。虽然说在我们公司,只有我辞退老板的份,没有老板辞退我这一说,但是还是被吓得 4 点多都起来了。(主要是因为我掌握着公司所有的核心源码,哈哈哈) 既然 4 点多起来,就得好好利用起来。于是我就挑选了 10 个堪称神器的学习网站,推...
这些软件太强了,Windows必装!尤其程序员!
Windows可谓是大多数人的生产力工具,集娱乐办公于一体,虽然在程序员这个群体中都说苹果是信仰,但是大部分不都是从Windows过来的,而且现在依然有很多的程序员用Windows。 所以,今天我就把我私藏的Windows必装的软件分享给大家,如果有一个你没有用过甚至没有听过,那你就赚了????,这可都是提升你幸福感的高效率生产力工具哦! 走起!???? NO、1 ScreenToGif 屏幕,摄像头和白板...
阿里面试,面试官没想到一个ArrayList,我都能跟他扯半小时
我是真的没想到,面试官会这样问我ArrayList。
曾经优秀的人,怎么就突然不优秀了。
职场上有很多辛酸事,很多合伙人出局的故事,很多技术骨干被裁员的故事。说来模板都类似,曾经是名校毕业,曾经是优秀员工,曾经被领导表扬,曾经业绩突出,然而突然有一天,因为种种原因,被裁员了,...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
良心推荐,我珍藏的一些Chrome插件
上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。 我下面就把我日常工作和学习中经常用到的一些 Chrome 浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。 Markdown Here Markdown Here 可以让你更愉快的写邮件,由于支持 Markdown 直接转电子邮...
【程序人生】程序员接私活常用平台汇总
00. 目录 文章目录00. 目录01. 前言02. 程序员客栈03. 码市04. 猪八戒网05. 开源众包06. 智城外包网07. 实现网08. 猿急送09. 人人开发10. 开发邦11. 电鸭社区12. 快码13. 英选14. Upwork15. Freelancer16. Dribbble17. Remoteok18. Toptal19. AngelList20. Topcoder21. ...
看完这篇HTTP,跟面试官扯皮就没问题了
我是一名程序员,我的主要编程语言是 Java,我更是一名 Web 开发人员,所以我必须要了解 HTTP,所以本篇文章就来带你从 HTTP 入门到进阶,看完让你有一种恍然大悟、醍醐灌顶的感觉。 最初在有网络之前,我们的电脑都是单机的,单机系统是孤立的,我还记得 05 年前那会儿家里有个电脑,想打电脑游戏还得两个人在一个电脑上玩儿,及其不方便。我就想为什么家里人不让上网,我的同学 xxx 家里有网,每...
史上最全的IDEA快捷键总结
现在Idea成了主流开发工具,这篇博客对其使用的快捷键做了总结,希望对大家的开发工作有所帮助。
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
谁是华为扫地僧?
是的,华为也有扫地僧!2020年2月11-12日,“养在深闺人不知”的华为2012实验室扫地僧们,将在华为开发者大会2020(Cloud)上,和大家见面。到时,你可以和扫地僧们,吃一个洋...
Idea 中最常用的10款插件(提高开发效率),一定要学会使用!
学习使用一些插件,可以提高开发效率。对于我们开发人员很有帮助。这篇博客介绍了开发中使用的插件。
AI 没让人类失业,搞 AI 的人先失业了
最近和几个 AI 领域的大佬闲聊 根据他们讲的消息和段子 改编出下面这个故事 如有雷同 都是巧合 1. 老王创业失败,被限制高消费 “这里写我跑路的消息实在太夸张了。” 王葱葱哼笑一下,把消息分享给群里。 阿杰也看了消息,笑了笑。在座几位也都笑了。 王葱葱是个有名的人物,21岁那年以全额奖学金进入 KMU 攻读人工智能博士,累计发表论文 40 余篇,个人技术博客更是成为深度学习领域内风向标。 ...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
木兰编程语言,当事人最新回复来了
同行12年,不知Python是木兰,当事人回应来了
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
一个程序在计算机中是如何运行的?超级干货!!!
强烈声明:本文很干,请自备茶水!???? 开门见山,咱不说废话! 你有没有想过,你写的程序,是如何在计算机中运行的吗?比如我们搞Java的,肯定写过这段代码 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } ...
【蘑菇街技术部年会】程序员与女神共舞,鼻血再次没止住。(文末内推)
蘑菇街技术部的年会,别开生面,一样全是美女。
立即提问