Android错误:Failed to install *.apk on device *: timeout

我一次又一次的得到这个错误,而且我不知道是什么引起的:
当在一个真实的设备(我的是Galaxy Samsung S)中运行/调试一个android应用的时候,我就在控制台得到了下边的错误提示:

Failed to install *.apk on device *:

timeout Launch canceled!

所有的控制台都是这样提示我的,但是日志没有显示任何信息。Eclipse问题视图也没有显示出任何问题。
我尝试了下边的步骤但是没有成功:
删除工程(工程->删除)
重启设备,Eclipse,电脑,以上的所有......
将工程移动到没有共享空间的地方
这个应用程序在设备上已经被调试了很多次(应用程序是在应用市场的),但是这个问题经常发生,非常让人沮丧....
如果有人能帮到我,我将会非常感激!谢谢。

suannai0314
鹳狸媛 如果你的代码有问题,它应该显示在Problems View,如果是运行时的错误,它将显示在LogCat View,这就是为什么他们不提供任何信息。
7 年多之前 回复

4个回答

试试改变ADB连接超时的时间。我认为它的默认值是5000ms,为了避免那个问题我把它改成了10000ms。如果你使用Eclipse,你可以通过检查Window -> Preferences这样做,它在Android下的DDMS中。

当我遇到这样的问题的时候我通常是在cmd中输入下边的命令行重启adb:
adb kill-server

adb start-server
在一些比较少见的平台工具版本你可以这样做,在设备标签组(靠近Capture Button)的DDMS视图,点击重启adb。
我也发现,在你的电脑的后边使用USB接口会更好,因为大多数前边的USB接口都是低电量的,而且当往你的服务器上上次apk的时候也更慢。
而且,不要使用USB3.0的接口连接电脑和android手机。

kokobar
kokobar 我是特意为漫随风起的回答点赞而登录的。
接近 6 年之前 回复
wangzi371312
mlking200 把USB插到机箱后面就解决了,感谢。
6 年多之前 回复

我之前也遇到过这个问题,我的解决方法是换一个USB的连接线。

qq_34223287
Osmond?? 太棒了
接近 4 年之前 回复

重启手机。
真的,完全断开电源然后再打开。我就是这么做的,而且也解决了问题

u013296339
花轮童鞋 我擦,真解决了问题。。。这也可以。你怎么知道这方法???
5 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Failedto install *.apk on device'emulator5554'

我刚学Android不久,写了几个简单的程序,突然就遇到这个问题,我也是醉了!问题就是: 我之前写好一个简单的Android工程,第一次运行的时候没问题,一切正常,但是我改了一下程序的图标,再运行的时候就不成功了,然后报出这个错误: [2015-05-20 16:06:07 - MyTest1] Failed to install MyTest1.apk on device 'emulator-5554': timeout [2015-05-20 16:06:07 - MyTest1] Launch canceled! 我去百度了一下,基本上都说修改 ADB connectio time out这个,就是:window->preferences->Android->DDMS 把原来的值5000改为50000. 然后我也改了,结果还是不行,唯一的办法就是叉掉AVD,重启一次,再运行,才能正常运行,不光是这样,每次写了第一个工程运行了之后,再写第二个工程再运行还是会出现这种情况!!! 我的渣电脑,每次启动AVD慢的一B,如果每改一下程序,或者写个新的程序都要重新启动AVD,简直受不了啊,我的心在等待,永远在等待!! 所以有没有哪位大神来解救我这个迷途的程序猿啊,跪了!!!

安卓系统错误: 安装失败 * 。 设备 * : 超时

<div class="post-text" itemprop="text"> <p>I'm getting this error from time to time and don't know what causing this:<br> When trying to run/debug an Android app on a real device (Galaxy Samsung S in my case) I'm getting the following error in the Console: </p> <blockquote> <p>Failed to install *.apk on device *: </p> <p>timeout Launch canceled!</p> </blockquote> <p>This is all the Console is telling me. LogCat doesn't provide any information. Eclipse Problems view is not showing any issues. </p> <p>I tried the following steps with no success:<br> 1. Cleaning the project (Project-&gt;Clean)<br> 2. Restarting device, Eclipse, laptop, all of the above...<br> 3. Moving the project to a location without spaces, according to <a href="https://stackoverflow.com/questions/4552435/failed-to-install-apk-on-device-emulator-5554-timeout">Failed to install apk on device 'emulator-5554': timeout</a> </p> <p>The app has been debugged in the past on that device many times (app is live on Market), but this problem happens every so often, and is VERY FRUSTRATING...</p> <p>Any help would be greatly appreciated! Thanks.</p> </div> <p>转载于:https://stackoverflow.com/questions/4775603/android-error-failed-to-install-apk-on-device-timeout</p>

android super.onTouchEvent(ev)报异常

重写listView的OnTouch方法 在return super.onTouchEvent(ev);这里会报IndexOutOfBoundsException异常 详细日志如下: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164) at android.widget.AbsListView.onTouchDown(AbsListView.java:3788) at android.widget.AbsListView.onTouchEvent(AbsListView.java:3664) at com.example.cloudvideo.view.MyRefreshListView.onTouchEvent(MyRefreshListView.java:374) at android.view.View.dispatchTouchEvent(View.java:7782) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2316) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2013) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1985) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1985) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1985) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1985) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1985) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2322) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1985) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2115) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1541) at android.app.Activity.dispatchTouchEvent(Activity.java:2505) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2063) at android.view.View.dispatchPointerEvent(View.java:7973) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4401) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4272) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3818) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3868) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3837) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3944) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3845) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4001) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3818) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3868) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3837) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3845) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3818) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6136) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6116) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6070) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6292) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:138) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:5367) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:663) at dalvik.system.NativeStart.main(Native Method)

android 第一次做自定义控件 java.lang.RuntimeException异常

package com.example.q9722.biancheng; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.util.AttributeSet; import android.widget.TextView; /** * Created by q9722 on 2018/1/1. */ public class test_text extends TextView { private String mText = "111",mNumber = "222"; private Paint mPaint; private Rect mNumberRect; public test_text(Context context, String mText, String mNumber) { this(context, null, mText, mNumber); } public test_text(Context context, AttributeSet attrs, String mText, String mNumber) { this(context, attrs, 0, mText, mNumber); } public test_text(Context context, AttributeSet attrs, int defStyleAttr, String mText, String mNumber) { super(context, attrs, defStyleAttr); this.mText = mText; this.mNumber = mNumber; init(); } private void init() { mPaint = new Paint(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); mPaint.setColor(Color.BLACK); mPaint.setStyle(Paint.Style.STROKE); canvas.drawRect(0, 0, getWidth(), getHeight(), mPaint); canvas.drawCircle(getWidth()/6*4, getHeight()/4*3,getHeight()/4,mPaint); mPaint.setTextSize(18); mPaint.getTextBounds(mNumber, 0, mNumber.length(), mNumberRect); canvas.drawText(mText, 2 ,getHeight()/5,mPaint); canvas.drawText(mNumber, (getWidth()/6*4)-(mNumberRect.width()/2), (getHeight()/4*3)-(mNumberRect.hashCode()/2), mPaint); } } 01/01 18:58:49: Launching app $ adb push C:\Users\q9722\AndroidStudioProjects\BianCheng\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.q9722.biancheng $ adb shell pm install -r "/data/local/tmp/com.example.q9722.biancheng" Success $ adb shell am start -n "com.example.q9722.biancheng/com.example.q9722.biancheng.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet..Waiting for process to come online Connected to process 30129 on device xiaomi-mi_5-43ac216f W/System: ClassLoader referenced unknown path: /data/app/com.example.q9722.biancheng-1/lib/arm64 I/InstantRun: Instant Run Runtime started. Android package is com.example.q9722.biancheng, real application class is null. W/System: ClassLoader referenced unknown path: /data/app/com.example.q9722.biancheng-1/lib/arm64 W/MIUI-BLOCK-MONITOR: The msg { when=-72ms what=110 obj=AppBindData{appInfo=ApplicationInfo{7c1e14a com.example.q9722.biancheng}} target=android.app.ActivityThread$H planTime=1514804333143 dispatchTime=1514804333215 finishTime=0 } took 3826ms and took 3754ms after dispatch. W/art: 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 W/System: ClassLoader referenced unknown path: /system/app/MiuiContentCatcher/lib/arm64 D/AccessibilityManager: current package=com.example.q9722.biancheng, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=true, mIsUiAutomationEnabled=false, mIsInterestedPackage=false V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@717395 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@bc3ccaa V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@664d14e D/ActivityThreadInjector: clearCachedDrawables. I/Adreno: QUALCOMM build : 620c068, I09d312ff84 Build Date : 08/07/17 OpenGL ES Shader Compiler Version: XE031.09.00.04 Local Branch : Remote Branch : Remote Branch : Reconstruct Branch : I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread. I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Swap behavior 1 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@c8e9e47 I/Timeline: Timeline: Activity_launch_request time:84494803 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@cd359d1 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@4011c36 D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.q9722.biancheng, PID: 30129 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.q9722.biancheng/com.example.q9722.biancheng.MainActivity}: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2785) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6321) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) Caused by: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet] at java.lang.Class.getConstructor0(Class.java:2204) at java.lang.Class.getConstructor(Class.java:1683) at android.view.LayoutInflater.createView(LayoutInflater.java:622) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:812) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:752) at android.view.LayoutInflater.rInflate(LayoutInflater.java:883) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:846) at android.view.LayoutInflater.inflate(LayoutInflater.java:522) at android.view.LayoutInflater.inflate(LayoutInflater.java:430) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.example.q9722.biancheng.MainActivity.onCreate(MainActivity.java:17) at android.app.Activity.performCreate(Activity.java:6847) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2785) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6321) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) Application terminated.

C语言程序出现以下报错 已使用win32 console application

报错error 2001 include后面的不知道为什么加了<>就显示不了 这里不加了 不是没有 源代码: #include stdio.h #includemalloc.h #includestdlib.h #define MAX 50 typedef int datatype; typedef struct { datatype queue[MAX]; int front; int rear; }sequeue; void initiate(sequeue*s); int addqueue(sequeue*s,int n); int delqueue(sequeue*s,int n); int gettop(sequeue*s); void print(sequeue*s); int main() { sequeue*s; int sel,n; if((s=(sequeue*)malloc(sizeof(sequeue)))==NULL) { printf("申请空间错误!\n"); return 0; } initiate(s); printf("完成初始化!\n"); printf("请输入你的选择:1-initiate 2-addqueue 3-delqueue 4-gettop 5-print 6-exic\nyour choise:"); scanf("%d",&sel); while(sel!=6) { if(sel==1) { initiate(s); printf("完成初始化!\n"); } else if(sel==2) { printf("\n 请输入待入对的数据个数:"); scanf("%d",&n); addqueue(s,n); print(s); } else if(sel==3) { printf("\n 请输入待出对的数据个数:"); scanf("%d",&n); delqueue(s,n); print(s); } else if(sel==4) { gettop(s); print(s); } else if(sel==5) { print(s); } else printf("你的选择是错误的!\n"); printf("请输入你的选择:1-initiate 2-addqueue 3-delqueue 4-gettop 5-print 6-exic\nyour choise:"); scanf("%d",&sel); } return 1; } void initiate(sequeue*s) { s->front=0; s->rear=0; } int addaqueue(sequeue*s,int n) { int i=1; datatype x; while(n) { if(s->front==(s->rear+1)%MAX) { printf("堆满!\n还有%d个元素未完成入对!\n",n); return 0; } printf("请输入第%d个入对的数据:",i); scanf("%d",&x); s->rear=(s->rear+1)%MAX; s->queue[s->rear]=x; i++; n--; } return 1; } int delqueue(sequeue*s,int n) { int i=1; datatype x; while(n) { if(s->front==s->rear) { printf("对空!\n"); return 0; } s->front=(s->front+1)%MAX; x=(s->queue[s->front]); printf("第%d个出对的数据为:%d\n",i,x); i++; n--; } return 1; } int gettop(sequeue*s) { datatype x; int m; if(s->front==s->rear) { printf("对空!\n"); return 0; } m=(s->front+1)%MAX; x=(s->queue[m]); printf("对头数据为:%d\n",x); return 1; } void print(sequeue*s) { int m; m=s->front; if(s->front==s->rear) { printf("对空!无显示输出!\n"); } else { while(m!=s->rear) { m=(m+1)%MAX; printf("queue[%d]数据为%d\n",m,s->queue[m]); } } }

安卓错误: 安装失败。 Time out

<div class="post-text" itemprop="text"> <p>I'm getting this error from time to time and don't know what causing this:<br> When trying to run/debug an Android app on a real device (Galaxy Samsung S in my case) I'm getting the following error in the Console: </p> <blockquote> <p>Failed to install *.apk on device *: </p> <p>timeout Launch canceled!</p> </blockquote> <p>This is all the Console is telling me. LogCat doesn't provide any information. Eclipse Problems view is not showing any issues. </p> <p>I tried the following steps with no success:<br> 1. Cleaning the project (Project-&gt;Clean)<br> 2. Restarting device, Eclipse, laptop, all of the above...<br> 3. Moving the project to a location without spaces, according to <a href="https://stackoverflow.com/questions/4552435/failed-to-install-apk-on-device-emulator-5554-timeout">Failed to install apk on device 'emulator-5554': timeout</a> </p> <p>The app has been debugged in the past on that device many times (app is live on Market), but this problem happens every so often, and is VERY FRUSTRATING...</p> <p>Any help would be greatly appreciated! Thanks.</p> </div> <p>转载于:https://stackoverflow.com/questions/4775603/android-error-failed-to-install-apk-on-device-timeout</p>

Android 系统启动模拟器出现这个问题怎么解决

``` root@huguang:~/android# emulator emulator: WARNING: system partition size adjusted to match image file (2560 MB > 200 MB) emulator: WARNING: data partition size adjusted to match image file (550 MB > 200 MB) emulator: WARNING: encryption is off libGL error: unable to load driver: vmwgfx_dri.so libGL error: driver pointer missing libGL error: failed to load driver: vmwgfx libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 49 Current serial number in output stream: 48 libGL error: unable to load driver: vmwgfx_dri.so libGL error: driver pointer missing libGL error: failed to load driver: vmwgfx libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 33 Current serial number in output stream: 34 QObject::~QObject: Timers cannot be stopped from another thread 段错误 (核心已转储) ``` ---------------- <br> <br> sdk目录好像少了tools目录 ``` root@huguang:~/android/out/host/linux-x86/sdk/sdk/android-sdk_eng.root_linux-x86# ls add-ons documentation.html RELEASE_NOTES.html tests build-tools platforms samples docs platform-tools system-images root@huguang:~/android/out/host/linux-x86/sdk/sdk/android-sdk_eng.root_linux-x86# ```

qt5.12.4安卓编译问题,生成不了apk, 求助这是哪里的问题?报错如下

20:35:47: 为项目app2执行步骤 ... 20:35:47: 配置没有改变, 跳过 qmake 步骤。 20:35:47: 正在启动 "E:\Android\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" -j12 make: Nothing to be done for `first'. 20:35:48: 进程"E:\Android\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe"正常退出。 20:35:48: Removing directory D:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build/assets 20:35:48: Removing directory D:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build/libs 20:35:48: 正在启动 "E:\Android\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=D:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build" install E:\App\Qt\5.12.4\android_armv7\bin\qmake.exe -install qinstall -exe libapp2.so D:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build\libs\armeabi-v7a\libapp2.so 20:35:49: 进程"E:\Android\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe"正常退出。 20:35:49: Starting: "E:\App\Qt\5.12.4\android_armv7\bin\androiddeployqt.exe" --input D:/src/qt_src/build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug/android-libapp2.so-deployment-settings.json --output D:/src/qt_src/build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug/android-build --android-platform android-23 --jdk "C:/Program Files/Java/jdk1.8.0_202" --gradle Generating Android Package Input file: D:/src/qt_src/build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug/android-libapp2.so-deployment-settings.json Output directory: D:/src/qt_src/build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug/android-build/ Application binary: D:/src/qt_src/build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug/libapp2.so Android build platform: android-23 Install to device: No -- Skipping E:/App/Qt/5.12.4/android_armv7/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so. -- Skipping E:/App/Qt/5.12.4/android_armv7/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so. :checkDebugClasspath UP-TO-DATE :preBuild UP-TO-DATE :preDebugBuild UP-TO-DATE :compileDebugAidl FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'. > java.io.IOException: com.android.ide.common.process.ProcessException: Error while executing process E:\Android\android-sdk-windows\build-tools\29.0.0\aidl.exe with arguments {-pE:\Android\android-sdk-windows\platforms\android-23\framework.aidl -oD:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build\build\generated\source\aidl\debug -IE:\App\Qt\5.12.4\android_armv7\src\android\java\src -ID:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build\src -ID:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build\src\debug\aidl -ID:\src\qt_src\build-app2-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Debug\android-build\aidl -dC:\Users\ADMINI~1\AppData\Local\Temp\aidl7196521705366926776.d E:\App\Qt\5.12.4\android_armv7\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl} * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6s 3 actionable tasks: 1 executed, 2 up-to-date Building the android package failed! -- For more information, run this command with --verbose. 20:35:57: 进程"E:\App\Qt\5.12.4\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。 Error while building/deploying project app2 (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv7)) When executing step "Build Android APK" 20:35:57: Elapsed time: 00:10.

Android 一用charAt()就卡退了

不知道怎么回事。。 ``` package com.example.lenovo.myapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button button = (Button)findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(MainActivity.this,"123456".charAt(2),Toast.LENGTH_SHORT).show(); } }); } } ``` ![图片说明](https://img-ask.csdn.net/upload/201911/04/1572859721_587300.png) 报错: ``` 11/04 17:21:36: Launching app $ adb push D:\study\Android\MyApplication2\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.lenovo.myapplication $ adb shell pm install -r "/data/local/tmp/com.example.lenovo.myapplication" Success $ adb shell am start -n "com.example.lenovo.myapplication/com.example.lenovo.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 4133 on device Nexus_5_API_24 [emulator-5554] W/System: ClassLoader referenced unknown path: /data/app/com.example.lenovo.myapplication-1/lib/x86 I/InstantRun: Instant Run Runtime started. Android package is com.example.lenovo.myapplication, real application class is null. W/System: ClassLoader referenced unknown path: /data/app/com.example.lenovo.myapplication-1/lib/x86 W/art: 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 W/gralloc_ranchu: Gralloc pipe failed [ 11-04 09:21:43.377 4133: 4133 D/ ] HostConnection::get() New Host Connection established 0xa63882c0, tid 4133 [ 11-04 09:21:43.425 4133: 4224 D/ ] HostConnection::get() New Host Connection established 0xa6388740, tid 4224 I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Swap behavior 1 W/ResourceType: No package identifier when getting value for resource number 0x00000033 D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.lenovo.myapplication, PID: 4133 android.content.res.Resources$NotFoundException: String resource ID #0x33 at android.content.res.Resources.getText(Resources.java:331) at android.widget.Toast.makeText(Toast.java:287) at com.example.lenovo.myapplication.MainActivity$1.onClick(MainActivity.java:19) at android.view.View.performClick(View.java:5610) at android.view.View$PerformClick.run(View.java:22260) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) Application terminated. ```

Android studio打包的APK不能在Android5.1上安装

可以连接真机测试,但是打包出来的APK不能在真机上安装,请问会是哪方面的影响? Android studio 升级到最新版本,打包出来的APK不能在Android5.1上运行 下面是对应的gradle和build对应的内容 ``` apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "27.0.3" ``` ``` distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip ``` ``` buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } ``` ``` <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.demo" android:versionCode="1" android:versionName="1.1"> <uses-sdk android:minSdkVersion="20" android:targetSdkVersion="25" /> ```

如何在 Android 模拟器中安装 APK 文件?

<div class="post-text" itemprop="text"> <p>I finally managed to obfuscate my Android application, now I want to test it by installing the <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29" rel="noreferrer">APK</a> file and running it on the emulator. </p> <p>How can I install an APK file on the Android Emulator?</p> </div> <p>转载于:https://stackoverflow.com/questions/3480201/how-do-you-install-an-apk-file-in-the-android-emulator</p>

android 模拟器 总莫名其妙的停止 这个问题困扰很久了 问问大家 谢谢

如题,经常出现这样的问题,很头疼。。。 去网上找,又不知道搜什么关键字,望知道的兄弟指教下。 [code="java"] [2011-07-13 11:24:24 - phone] Re-installation failed due to different application signatures. [2011-07-13 11:24:24 - phone] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2011-07-13 11:24:24 - phone] Please execute 'adb uninstall com.android.phone' in a shell. [2011-07-13 11:24:24 - phone] Launch canceled! [/code] [code="java"] [2011-07-14 12:12:29 - data] Failed to install data.apk on device 'emulator-5554': device not found [2011-07-14 12:12:29 - data] com.android.ddmlib.InstallException: device not found [2011-07-14 12:12:29 - data] Launch canceled! [/code] 还会出现LogCat没有输出的情况,出现这种情况后,在DDMS中点下模拟器,又会输出。。

Installation error: INSTALL_FAILED_OLDER_SDK

项目SDK: android:minSdkVersion="12" android:targetSdkVersion="21" 目标手机安卓版本 4.1.2 应该不是最小版本的问题 ,4.1.2 对应 16,就算我将其改为8还是不行 还有可能是什么原因?

appium 测试无法打开 app,请各位大神帮忙

初学appium,使用python写测试脚本,现在可以安装上app,之后无法自动启动app。 这是我的脚本: #coding=utf-8 from appium import webdriver from lib2to3.pgen2.driver import Driver from lib2to3.tests.support import driver import os import time PATH=lambda p:os.path.abspath(os.path.join(os.path.dirname(file),p)) global driver desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.4.2' desired_caps['deviceName'] = 'b91b9b66' #desired_caps['appPackage'] = 'com.zhengyuan.watch' #desired_caps['appActivity'] = 'com.zhengyuan.watch.logic.launch.AppStart' desired_caps['app'] = PATH('D:\android\app\rtring_c_zhengyuan.apk') driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) time.sleep(5) driver.swipe(600,660,10,660,1000) time.sleep(1) driver.swipe(600,660,10,660,1000) time.sleep(1) log: info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"4.4.2","deviceName":"b91b9b66","app":"D:\android\app\rtring_c_zhengyuan.apk","platformName":"Android"}} info: Client User-Agent string: Python-urllib/2.7 info: [debug] No appActivity desired capability or server param. Parsing from apk. info: [debug] No appPackage desired capability or server param. Parsing from apk. info: [debug] Using local app from desired caps: D:\android\app\rtring_c_zhengyuan.apk info: [debug] Creating new appium session 7ab051a1-8c95-4b9a-a998-f1748ed52d47 info: Starting android appium info: [debug] Getting Java version info: Java version is: 1.7.0_79 info: [debug] Checking whether adb is present info: [debug] Using adb from D:\android\sdk\platform-tools\adb.exe info: [debug] Parsing package and activity from app manifest info: [debug] Checking whether aapt is present info: [debug] Using aapt from D:\android\sdk\build-tools\android-4.4W\aapt.exe info: [debug] Extracting package and launch activity from manifest. info: [debug] executing cmd: D:\android\sdk\build-tools\android-4.4W\aapt.exe dump badging D:\android\app\rtring_c_zhengyuan.apk info: [debug] badging package: com.zhengyuan.watch info: [debug] badging act: com.zhengyuan.watch.logic.launch.AppStart info: [debug] Parsed package and activity are: com.zhengyuan.watch/com.zhengyuan.watch.logic.launch.AppStart info: [debug] Using fast reset? true info: [debug] Preparing device for session info: [debug] Checking whether app is actually present info: Retrieving device info: [debug] Trying to find a connected android device info: [debug] Getting connected devices... info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe devices info: [debug] 1 device(s) connected info: Found device b91b9b66 info: [debug] Setting device id to b91b9b66 info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5) info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 wait-for-device info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "echo 'ready'" info: [debug] Starting logcat capture info: [debug] Getting device API level info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "getprop ro.build.version.sdk" info: [debug] Device is at API Level 19 info: Device API level is: 19 info: [debug] Extracting strings for language: default info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "getprop persist.sys.language" info: [debug] Current device persist.sys.language: zh info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "D:\android\app\rtring_c_zhengyuan.apk" "C:\Users\admin\AppData\Local\Temp\com.zhengyuan.watch" zh info: [debug] Reading strings from converted strings.json info: [debug] Setting language to default info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 push "C:\Users\admin\AppData\Local\Temp\com.zhengyuan.watch\strings.json" /data/local/tmp info: [debug] Checking whether aapt is present info: [debug] Using aapt from D:\android\sdk\build-tools\android-4.4W\aapt.exe info: [debug] Retrieving process from manifest. info: [debug] executing cmd: D:\android\sdk\build-tools\android-4.4W\aapt.exe dump xmltree D:\android\app\rtring_c_zhengyuan.apk AndroidManifest.xml info: [debug] Set app process to: com.zhengyuan.watch info: [debug] Not uninstalling app since server not started with --full-reset info: [debug] Checking app cert for D:\android\app\rtring_c_zhengyuan.apk. info: [debug] executing cmd: java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar" D:\android\app\rtring_c_zhengyuan.apk info: [debug] App already signed. info: [debug] Zip-aligning D:\android\app\rtring_c_zhengyuan.apk info: [debug] Checking whether zipalign is present info: [debug] Using zipalign from D:\android\sdk\build-tools\android-4.4W\zipalign.exe info: [debug] Zip-aligning apk. info: [debug] executing cmd: D:\android\sdk\build-tools\android-4.4W\zipalign.exe -f 4 D:\android\app\rtring_c_zhengyuan.apk C:\Users\admin\AppData\Local\Temp\116210-428-1fgurq6\appium.tmp info: [debug] MD5 for app is 310a577ec209ceac8a6dee5086a1bf5d info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "ls /data/local/tmp/310a577ec209ceac8a6dee5086a1bf5d.apk" info: [debug] Getting install status for com.zhengyuan.watch info: [debug] Getting device API level info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "getprop ro.build.version.sdk" info: [debug] Device is at API Level 19 info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "pm list packages -3 com.zhengyuan.watch" info: [debug] App is installed info: Installing App info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "mkdir -p /data/local/tmp/" info: [debug] Removing any old apks info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "ls /data/local/tmp/*.apk" info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell rm "/data/local/tmp/8f29ab35c86ad03708a23dfe9aaeeaa0.apk" info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 push "D:\android\app\rtring_c_zhengyuan.apk" /data/local/tmp/310a577ec209ceac8a6dee5086a1bf5d.apk info: [debug] Uninstalling com.zhengyuan.watch info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "am force-stop com.zhengyuan.watch" info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 uninstall com.zhengyuan.watch info: [debug] App was uninstalled info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "pm install -r /data/local/tmp/310a577ec209ceac8a6dee5086a1bf5d.apk" info: [debug] Forwarding system:4724 to device:4724 info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 forward tcp:4724 tcp:4724 info: [debug] Pushing appium bootstrap to device... info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 push "C:\Program Files (x86)\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar" /data/local/tmp/ info: [debug] Pushing settings apk to device... info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 install "C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk" info: [debug] Pushing unlock helper app to device... info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 install "C:\Program Files (x86)\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk" info: Starting App info: [debug] Attempting to kill all 'uiautomator' processes info: [debug] Getting all processes with 'uiautomator' info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "ps 'uiautomator'" info: [debug] Attempting to kill process 31936 info: [debug] executing cmd: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell "kill 31936" info: [debug] Running bootstrap info: [debug] spawning: D:\android\sdk\platform-tools\adb.exe -s b91b9b66 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.zhengyuan.watch -e disableAndroidWatchers false info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1 info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream= info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap: info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1 info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1 info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724 info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready info: [debug] [BOOTSTRAP] [debug] Loading json... error: Unhandled error: Error: getaddrinfo ENOENT at Object.exports.errnoException (util.js:746:11) at errnoException (dns.js:49:15) at GetAddrInfoReqWrap.onlookup as oncomplete context: [POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"4.4.2","deviceName":"b91b9b66","app":"D:\android\app\rtringc_zhengyuan.apk","platformName":"Android"}}] info: [debug] [BOOTSTRAP] [debug] json loading complete. info: [debug] [BOOTSTRAP] [debug] Registered crash watchers. info: <-- POST /wd/hub/session - - ms - - undefined 之后就停住了,请大家帮我看看是什么问题,纠结了好几天了,谢谢大家!

android开发真机测试问题

真机测试走到这一步Installing ButtonText.apk... 就一直不动,但手机里已经安装好了该apk. 不过真机不会自动运行该APK,过一会就提示Failed to install ButtonText.apk on device 'HT14RT227816! [2013-05-08 16:50:41 - ButtonText] (null) [2013-05-08 16:50:41 - ButtonText] Launch canceled!

android studio 可以build但run会报错

android studio 可以build但run会报错 并且已经参考网上把gradle对应版本对应了 (想运行个hello world都这么难。。。。) ![图片说明](https://img-ask.csdn.net/upload/201911/18/1574009065_408984.png) ![图片说明](https://img-ask.csdn.net/upload/201911/18/1574009192_4232.png)

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Intellij IDEA 实用插件安利

1. 前言从2020 年 JVM 生态报告解读 可以看出Intellij IDEA 目前已经稳坐 Java IDE 头把交椅。而且统计得出付费用户已经超过了八成(国外统计)。IDEA 的...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

魂迁光刻,梦绕芯片,中芯国际终获ASML大型光刻机

据羊城晚报报道,近日中芯国际从荷兰进口的一台大型光刻机,顺利通过深圳出口加工区场站两道闸口进入厂区,中芯国际发表公告称该光刻机并非此前盛传的EUV光刻机,主要用于企业复工复产后的生产线扩容。 我们知道EUV主要用于7nm及以下制程的芯片制造,光刻机作为集成电路制造中最关键的设备,对芯片制作工艺有着决定性的影响,被誉为“超精密制造技术皇冠上的明珠”,根据之前中芯国际的公报,目...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

差点跪了...

最近微信又搞出了一个大利器,甚至都上了热搜,当然消息最敏捷的自媒体人,纷纷都开通了自己的视频号。01 视频号是什么呢?视频号是微信体系内的短视频,它不同...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

Vue回炉重造之router路由(更新中)

你好,我是Vam的金豆之路,可以叫我豆哥。2019年年度博客之星、技术领域博客专家。主要领域:前端开发。我的微信是 maomin9761,有什么疑问可以加我哦,自己创建了一个微信技术交流群,可以加我邀请你一起交流学习。最后自己也创建了一个微信公众号,里面的文章是我自己精挑细选的文章,主要介绍各种IT新技术。欢迎关注哦,微信搜索:臻美IT,等你来。 欢迎阅读本博文,本博文主要讲述【】,文字通...

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大胆预测下未来5年的Web开发

在2019年的ReactiveConf 上,《Elm in Action》的作者Richard Feldman对未来5年Web开发的发展做了预测,很有意思,分享给大家。如果你有机会从头...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

都前后端分离了,咱就别做页面跳转了!统统 JSON 交互

文章目录1. 无状态登录1.1 什么是有状态1.2 什么是无状态1.3 如何实现无状态1.4 各自优缺点2. 登录交互2.1 前后端分离的数据交互2.2 登录成功2.3 登录失败3. 未认证处理方案4. 注销登录 这是本系列的第四篇,有小伙伴找不到之前文章,松哥给大家列一个索引出来: 挖一个大坑,Spring Security 开搞! 松哥手把手带你入门 Spring Security,别再问密...

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

立即提问
相关内容推荐