我的android studio总是不能够创建app-debug.apk文件?

错误:
Gradle build finished with 1 error(s) in 33 sec
Unexpected Error
Local path doesn't exist.
Local path doesn't exist.
The project may need to be synced with Gradle files.
找到的办法:sdk\tools\lib\find_java.bat 文件中多个空格或冗余
查看没有以上问题,还有什么解决方法,求教

1个回答

文件没找到,你要看你的程序和里面的文件路径和实际的是否一致。

zhaoyuan1234dj
zhaoyuan1234dj 回复Emperor_rock: 请问您解决了吗?我也遇到了这个问题。。。。。
大约 5 年之前 回复
Emperor_rock
帝乙岩 文件路径和实际保持一致。
大约 5 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
百度开发者平台提交应用提示 签名与上版本不同 ?
上版本提交的是Android Studio 2.0自动生成的app-debug-unaligned.apk,当时是小白也不知什么是签名。现在用的AS2.3自己签名生产apk导致签名不同,请问如何解决?
android studio打包apk时报错
android studio 在添加了第三方库之后出现问题(编译ok,运行报错): ``` Error:duplicate files during packaging of APK E:\android\hikeplus\app\build\outputs\apk\app-debug-unaligned.apk Path in archive: assets/MojingSDK/InputMap_mojing_default.json Origin 1: E:\android\hikeplus\app\build\intermediates\res\resources-debug.ap_ Origin 2: E:\android\hikeplus\app\build\intermediates\transforms\mergeJavaRes\debug\jars\2\1f\main.jar You can ignore those files in your build.gradle: android { packagingOptions { exclude 'assets/MojingSDK/InputMap_mojing_default.json' } } Error:Execution failed for task ':app:packageDebug'. > Duplicate files copied in APK assets/MojingSDK/InputMap_mojing_default.json File1: E:\android\hikeplus\app\build\intermediates\res\resources-debug.ap_ File2: E:\android\hikeplus\app\build\intermediates\transforms\mergeJavaRes\debug\jars\2\1f\main.jar ``` 按照提示,在build.gradle中添加以下语句后的文件为: ``` apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.nuc.hikeplus" minSdkVersion 19 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'assets/MojingSDK/MobileConfig.json' exclude 'assets/MojingSDK/Glassesfig.json' exclude 'assets/MojingSDK/InputMap_default.json' } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.1' compile 'com.android.support:design:23.2.1' compile files('libs/unity-classes.jar') compile files('libs/MojingSDK.jar') compile files('libs/MojingSDKUnity.jar') } ``` 编译成功但运行依旧提示该错误
AndroidStudio报错,求助!!!
Waiting for device. Target device: Iphone6 [emulator-5554] Uploading file local path: F:\AndroidStudioSpace\MyApplication\app\build\outputs\apk\app-debug.apk remote path: /data/local/tmp/com.example.owantsoft.myapplication Local path doesn't exist.
Android Studio debug cocos2d-x工程,成功编译后,报错无法进虚拟机
``` ……以上编译内容省略 :AnimalPlanet:assembleDebug Skipping task ':AnimalPlanet:assembleDebug' as it has no actions. :AnimalPlanet:assembleDebug UP-TO-DATE :AnimalPlanet:assembleDebug (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 0.001 secs. BUILD SUCCESSFUL in 1s 51 actionable tasks: 1 executed, 50 up-to-date Traceback (most recent call last): File "D:\environment\cocos2d-x-3.13.1\tools\cocos2d-console\bin\/cocos.py", line 998, in <module> run_plugin(command, argv, plugins) File "D:\environment\cocos2d-x-3.13.1\tools\cocos2d-console\bin\/cocos.py", line 916, in run_plugin plugin.run(argv, dependencies_objects) File "D:\environment\cocos2d-x-3.13.1\tools\cocos2d-console\plugins\plugin_compile\project_compile.py", line 1546, in run self.build_android() File "D:\environment\cocos2d-x-3.13.1\tools\cocos2d-console\plugins\plugin_compile\project_compile.py", line 527, in build_android self.apk_path = builder.do_build_apk(build_mode, self._no_apk, output_dir, self._custom_step_args, self) File "D:\environment\cocos2d-x-3.13.1\tools\cocos2d-console\plugins\plugin_compile\build_android.py", line 462, in do_build_apk shutil.copy(gen_apk_path, output_dir) File "C:\Python27\lib\shutil.py", line 119, in copy copyfile(src, dst) File "C:\Python27\lib\shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: 'D:\\work\\AnimalPlanet-_Iran\\proj.android-studio\\app/build/outputs/apk\\AnimalPlanet-debug.apk' Process finished with exit code 1 ``` 如果单处APK没问题,但这样没法调试Java部分(sdk接入),着急啊,感谢有经营的大神指点。
Android Studio 编译项目突然报错 Unsupported manifest version: 7.0.1.7829.
项目以前一直正常,且一直是在Android Studio平台下运行,这几天突然开始报下面这个错, FAILURE: Build failed with an exception. ``` * What went wrong: Execution failed for task ':app:packageDebug'. > Unsupported manifest version: 7.0.1.7829. ``` 网上说Rebuild之后可以解决,但是我Rebuild之后会报下面这个错 ``` * What went wrong: Execution failed for task ':app:clean'. > Unable to delete file: D:\dataFiles\comptition\CSdesign\ZZUPipe\app\build\outputs\apk\debug\app-debug.apk ``` 这个问题我关闭AS后可以手动删除,但下次在编译一次之后再次编译又会重复上面的问题,重启电脑也试过了,也是只能编译一次,求大佬解决一下。
android studio 导入报错
开始可以运行 然后我拷贝到另外一台电脑上就无法运行 先是报错 Installation failed with message Invalid File: K:\project\app\build\intermediates\split-apk\with_ImageProcessor\debug\slices\slice_0.apk. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. WARNING: Uninstalling will remove the application data! Do you want to uninstall the existing application? 然后我按照stackoverflow上的方法 Click Build tab ---> Clean Project Click Build tab ---> Build APK Run. 走了一遍 但是程序打不开 点击debug 然后 debug界面显示 $ adb install-multiple -r /Users/user/Desktop/x1/Xd/app/build/outputs/apk/app-debug.apk Split APKs installed $ adb shell am start -n "com.example.user.xd/com.example.user.xd.FirstActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Connecting to com.example.user.xd Connected to the target VM, address: 'localhost:8600', transport: 'socket' Disconnected from the target VM, address: 'localhost:8600', transport: 'socket' Android Monitor 提示 09-21 21:59:40.061 22694-22694/? I/art: Late-enabling -Xcheck:jni 09-21 21:59:40.114 22694-22694/com.example.user.xd W/ActivityThread: Application com.example.user.xd is waiting for the debugger on port 8100... 09-21 21:59:40.114 22694-22694/com.example.user.xd I/System.out: Sending WAIT chunk 09-21 21:59:40.315 22694-22700/com.example.user.xd I/art: Debugger is active 09-21 21:59:40.515 22694-22694/com.example.user.xd I/System.out: Debugger has connected 09-21 21:59:40.515 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:40.715 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:40.915 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.115 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.316 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.516 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.716 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.917 22694-22694/com.example.user.xd I/System.out: debugger has settled (1396) 09-21 21:59:42.009 22694-22694/com.example.user.xd W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --debuggable --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=krait --instruction-set-features=default --dex-file=/data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm/data@app@com.example.user.xd-2@split_lib_slice_0_apk.apk@classes.dex) because non-0 exit status 09-21 21:59:42.020 22694-22694/com.example.user.xd W/art: Fallback to original dex file with interpret-mode for /data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk 09-21 21:59:42.021 22694-22694/com.example.user.xd W/System: ClassLoader referenced unknown path: /data/app/com.example.user.xd-2/lib/arm 09-21 21:59:42.025 22694-22694/com.example.user.xd I/InstantRun: starting instant run server: is main process 09-21 21:59:42.031 22694-22694/com.example.user.xd I/art: Rejecting re-init on previously-failed class java.lang.Class<com.example.user.xd.FirstActivity> 09-21 21:59:42.031 22694-22694/com.example.user.xd D/AndroidRuntime: Shutting down VM 09-21 21:59:42.035 22694-22694/com.example.user.xd E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.user.xd, PID: 22694 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.user.xd/com.example.user.xd.FirstActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.user.xd.FirstActivity" on path: DexPathList[[zip file "/data/app/com.example.user.xd-2/base.apk", zip file "/data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.user.xd-2/lib/arm, /vendor/lib, /system/lib]] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509) at android.app.ActivityThread.access$1000(ActivityThread.java:153) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:5528) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:740) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:630) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.user.xd.FirstActivity" on path: DexPathList[[zip file "/data/app/com.example.user.xd-2/base.apk", zip file "/data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.user.xd-2/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at android.app.Instrumentation.newActivity(Instrumentation.java:1068) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2350) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)  at android.app.ActivityThread.access$1000(ActivityThread.java:153)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:5528)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:740)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:630)  Suppressed: java.lang.NoClassDefFoundError: com.example.user.xd.FirstActivity at dalvik.system.DexFile.defineClassNative(Native Method) at dalvik.system.DexFile.defineClass(DexFile.java:226) at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219) at dalvik.system.DexPathList.findClass(DexPathList.java:338) at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54) ... 13 more Suppressed: java.lang.ClassNotFoundException: com.example.user.xd.FirstActivity at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 12 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
flutter插件可以签名打包吗?
如题,在androidstudio上开发。我知道flutter开发可以签名打包,但是我做了混合开发flutter加android的开发,我正常打包之后比debug包小了40多mb,然后app-release.apk 在移动端安装直接报错,debug包是完全正常的,求助!!!![图片说明](https://img-ask.csdn.net/upload/201911/18/1574066419_154214.png)
郭林第一行代码百度定位 加入<meta-data 报错无法解决
自己按照郭林的代码敲的,也去申请了百度的api_key,在编译的时候失败发现R文件丢失。然后自己定位问题,发现在加入 <meta_data android:name="com.baidu.lbsapi.API_KEY" android:value="h18P0vAKBRxVKIoAMaN6lWE0AFVPGIcI"/>这里时再编译R文件丢失,自己怎么也解决不了。下面贴上报错的信息,请大佬解答。 Android resource linking failed Output: C:\Users\hp\AndroidStudioProjects\LBSTest\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml:31: error: unexpected element <meta_data> found in <manifest><application>. Command: C:\Users\hp\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\a9d2b3cd22e67d33e1c7de4dc7df6b20\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\ C:\Users\hp\AppData\Local\Android\Sdk\platforms\android-28\android.jar\ --manifest\ C:\Users\hp\AndroidStudioProjects\LBSTest\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\ -o\ C:\Users\hp\AndroidStudioProjects\LBSTest\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\ -R\ @C:\Users\hp\AndroidStudioProjects\LBSTest\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\ --auto-add-overlay\ --java\ C:\Users\hp\AndroidStudioProjects\LBSTest\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\ --custom-package\ com.example.hp.lbstest\ -0\ apk\ --output-text-symbols\ C:\Users\hp\AndroidStudioProjects\LBSTest\app\build\intermediates\symbols\debug\R.txt\ --no-version-vectors Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0 ``` ```
ANDROID STUDIO网络问题
报错为: 01/09 11:01:50: Launching app $ adb push C:\Users\Administrator\AndroidStudioProjects\MyApplication13\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.administrator.myapplication $ adb shell pm install -r "/data/local/tmp/com.example.administrator.myapplication" Success $ adb shell am start -n "com.example.administrator.myapplication/com.example.administrator.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet..Connected to process 2346 on device emulator-5554 W/System: ClassLoader referenced unknown path: /data/app/com.example.administrator.myapplication-1/lib/x86 I/InstantRun: Instant Run Runtime started. Android package is com.example.administrator.myapplication, real application class is null. W/System: ClassLoader referenced unknown path: /data/app/com.example.administrator.myapplication-1/lib/x86 W/art: Verification of void android.support.v7.app.AppCompatActivity.onSupportActionModeFinished(android.support.v7.view.ActionMode) took 1.372s 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 [ 01-09 03:02:02.837 2346: 2346 D/ ] HostConnection::get() New Host Connection established 0x9daf8380, tid 2346 I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Swap behavior 1 D/NetworkSecurityConfig: No Network Security Config specified, using platform default Application terminated. 在权限中,我已经添加了网络权限。 但是不知道为什么就是不行。 源代码如下: package com.example.administrator.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import static android.icu.lang.UCharacter.GraphemeClusterBreak.V; public class MainActivity extends AppCompatActivity implements View.OnClickListener{ TextView responseText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button sendRquest=(Button)findViewById(R.id.send_request); responseText=(TextView)findViewById(R.id.requestion_text); sendRquest.setOnClickListener(this); } public void onClick(View v) { if(v.getId()==R.id.send_request) { sendResquestWithHttpURLConnection(); } } private void sendResquestWithHttpURLConnection() { new Thread(new Runnable() { @Override public void run() { HttpURLConnection connection=null; BufferedReader reader=null; try{ URL url=new URL("http://www.baidu.com"); connection=(HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET"); connection.setConnectTimeout(8000); connection.setReadTimeout(8000); InputStream in=connection.getInputStream(); reader=new BufferedReader(new InputStreamReader(in)); StringBuilder response=new StringBuilder(); String line; while((line=reader.readLine())!=null) { response.append(in); } showResponse(response.toString()); } catch(Exception e) { e.printStackTrace(); } finally { if(reader!=null){ try{ reader.close(); }catch (IOException e) { e.printStackTrace(); } } if(connection!=null) { connection.disconnect(); } } } }).start(); } private void showResponse(final String response){ runOnUiThread(new Runnable(){ public void run(){ responseText.setText(response); } }); } }
从windows导入mac的android项目,下载到真机时出现空指针错误
![图片说明](https://img-ask.csdn.net/upload/201706/08/1496905838_954210.jpg) 导入的项目错误F:\Android\AndroidStudioProjects\SCar\app\build\intermediates\split-apk\debug\slices\slice_3.apk 这个文件我有: ![图片说明](https://img-ask.csdn.net/upload/201706/08/1496906349_455771.jpg) 但是不知道这个去哪里设置 求师傅帮忙!谢谢了!
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. ```
Error parsing XML: junk after document element
![图片说明](https://img-ask.csdn.net/upload/201504/21/1429588746_751146.png) SET_BTU.XML(自己写的)文件最后面出现了一长长的红色波浪线打底的语句:04-16 16:53:07.066: E/AndroidRuntime(25817): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.huyubao/com.example.huyubao.MainActivity}: android.view.InflateException: Binary XML file line #30: Error inflating class com.android.internal.widget.ActionBarView 这是什么意思?怎么解决呀? 错误提示: Error:(16) Error parsing XML: junk after document element Error:(16) Execution failed for task ':app:processDebugResources'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\Administrator\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe package -f --no-crunch -I C:\Users\Administrator\AppData\Local\Android\sdk\platforms\android-21\android.jar -M D:\android-studio\exercise\svn_小风车\xfegnche.radio_net\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android-studio\exercise\svn_小风车\xfegnche.radio_net\app\build\intermediates\res\debug -A D:\android-studio\exercise\svn_小风车\xfegnche.radio_net\app\build\intermediates\assets\debug -m -J D:\android-studio\exercise\svn_小风车\xfegnche.radio_net\app\build\generated\source\r\debug -F D:\android-studio\exercise\svn_小风车\xfegnche.radio_net\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package com.xfengche.wwww.xfegncheradio_net -0 apk --output-text-symbols D:\android-studio\exercise\svn_小风车\xfegnche.radio_net\app\build\intermediates\symbols\debug Error Code: 1 Output: D:\android-studio\exercise\svn_小风车\xfegnche.radio_net\app\build\intermediates\res\debug\drawable\set_btn.xml:16: error: Error parsing XML: junk after document element
用cocostudio打包的,求大神指点
Based on: cocos2d-x-3.8 Updated project.properties Updated local.properties Updated file D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\proguard-project.txt Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml make.exe: Entering directory `D:/VSSWS/project/WWHPJ/frameworks/runtime-src/proj.android' [armeabi] StaticLibrary : libcpufeatures.a [armeabi] SharedLibrary : libcocos2djs.so [armeabi] Install : libcocos2djs.so => libs/armeabi/libcocos2djs.so make.exe: Leaving directory `D:/VSSWS/project/WWHPJ/frameworks/runtime-src/proj.android' 执行命令:jscompile 正在处理 js 文件。 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\main.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\res\loading.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\3d\jsb_cocos2d_3d.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\3d\jsb_cocos2d_3d_ext.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\ccui\jsb_ccui_create_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\ccui\jsb_ccui_deprecated.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\ccui\jsb_ccui_property_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\ccui\jsb_ccui_property_impls.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\ccui\jsb_cocos2d_ui.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\chipmunk\jsb_chipmunk.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\chipmunk\jsb_chipmunk_constants.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\debugger\actors\root.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\debugger\actors\script.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\debugger\core\promise.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\debugger\DevToolsUtils.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\debugger\main.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\debugger\transport.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\extension\jsb_cocos2d_extension.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\extension\jsb_ext_create_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\extension\jsb_ext_property_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_audioengine.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_boot.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_cocos2d.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_cocos2d_constants.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_cocosbuilder.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_common.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_create_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_debugger.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_deprecated.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_loaders.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_opengl.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_opengl_constants.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_pool.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_prepare.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_property_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_property_impls.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\jsb_spine.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\navmesh\jsb_navmesh.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\physics3d\jsb_physics3d.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\physicsSprite\jsb_physicsSprite.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\jsb_cocos2d_studio.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\jsb_studio_boot.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\jsb_studio_create_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\jsb_studio_load.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\jsb_studio_property_apis.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\parsers\action-1.x.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\parsers\action-2.x.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\parsers\compatible.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\parsers\scene-1.x.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\parsers\timelineParser-1.x.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\parsers\timelineParser-2.x.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\script\studio\parsers\uiParser-1.x.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\app.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\endScene.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\gameScene.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\lib\gx2.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\lib\net.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\lib\sxutil.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\loading.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\num.js 编译为字节码... 正在将 D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets\src\resource.js 编译为字节码... 编译完成。 ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME. 执行命令:compile 编译模式:debug 使用 Eclipse 工程:D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android 未指定 Android 目标平台版本,自动查找一个可用版本... 正在执行:'"D:\Cocos\Android-SDK\tools\android" update project -t android-20 -p D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android' 正在执行 ndk-build... NDK 编译模式:release NDK_TOOLCHAIN_VERSION: 4.9 正在执行:'"D:\Cocos\android-ndk-r10d\ndk-build" -C D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android -j3 NDK_MODULE_PATH=C:\Cocos\frameworks/cocos2d-x-3.8;C:\Cocos\frameworks/cocos2d-x-3.8/cocos;C:\Cocos\frameworks/cocos2d-x-3.8/external NDK_TOOLCHAIN_VERSION=4.9' 正在生成 apk 文件... 正在执行:'"C:\Cocos\frameworks\cocos2d-x-3.8\tools\cocos2d-console\bin\cocos" jscompile -s "D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets" -d "D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\assets"' 正在执行:'"C:\Cocos\tools\ant\bin\ant" clean debug -f D:\VSSWS\project\WWHPJ\frameworks\runtime-src\proj.android\build.xml -Dsdk.dir="D:\Cocos\Android-SDK"' Traceback (most recent call last): File "C:\Cocos\frameworks\cocos2d-x-3.8\tools\cocos2d-console\bin\cocos.py", line 897, in <module> run_plugin(command, argv, plugins) File "C:\Cocos\frameworks\cocos2d-x-3.8\tools\cocos2d-console\bin\cocos.py", line 834, in run_plugin plugin.run(argv, dependencies_objects) File "C:\Cocos\frameworks\cocos2d-x-3.8\tools\cocos2d-console\plugins\project_compile\project_compile.py", line 1615, in run self.build_android() File "C:\Cocos\frameworks\cocos2d-x-3.8\tools\cocos2d-console\plugins\project_compile\project_compile.py", line 536, in build_android self.apk_path = builder.do_build_apk(build_mode, self._no_apk, output_dir, self._custom_step_args, self) File "C:\Cocos\frameworks\cocos2d-x-3.8\tools\cocos2d-console\plugins\project_compile\build_android.py", line 552, in do_build_apk shutil.copy(gen_apk_path, output_dir) File "C:\Cocos\Cocos\CocosStudio2\Third_Party\python\lib\shutil.py", line 119, in copy copyfile(src, dst) File "C:\Cocos\Cocos\CocosStudio2\Third_Party\python\lib\shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: u'D:\\VSSWS\\project\\WWHPJ\\frameworks\\runtime-src\\proj.android\\bin\\WWHPJ-debug.apk' 打包失败,不知道为什么
试验多渠道打包遇到的问题
开发工具:Android studio 3.0 Beta 2 做多渠道打包遇时遇到的问题 app下的build.gradle如下: apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.zxf.multipacking" minSdkVersion 19 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' // 自定义输出配置 applicationVariants.all { variant -> variant.outputs.all { output -> def outputFile = output.outputFile if (null != outputFile && outputFile.name.endsWith('.apk')) { def fileName = "demo_${variant.productFlavors[0].name}-${defaultConfig.versionCode}-${defaultConfig.versionName}}.apk" outputFileName = new File(outputFile.parent, fileName) } } } } debug { minifyEnabled false applicationIdSuffix ".debug" } } productFlavors { flavorDimensions "default" one { dimension "default" } two { dimension "default" } productFlavors.all { flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) } 之后在terminal中执行gradle assemble打渠道包,报错。如下: * What went wrong: Could not dispatch a message to the daemon. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org 有哪位大神路过,帮忙指点迷津。万分感激!
小白求问为什么应用一进去就闪退了
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
AndroidStudio项目突然不能build打包了,但是run是可以的
AndroidStudio 3.0 mac jdk1.7 java环境 突然项目不能打包了,build apk,build signed apk都报错app:transformClassesWithMultidexlistForDebug,但是直接run是可以的 ``` FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > com.android.build.api.transform.TransformException: Error while generating the main dex list. * 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 1m 0s ``` 然后尝试过得方法有 1,invalided caches /Restart 删除build重启电脑 2,彻底卸载AndroidStudio,重新安装 3,在App的build中添加 ``` buildTypes { debug { useProguard true } } ``` 4,使用上个月压缩包备份的好的项目代码也不能跑 已经尝试过了baidu google stackoverflow上很多方法还是没解决问题,求大神指教下,不剩感激
关于华为荣耀手机程序运行时闪退的问题?
关于华为荣耀手机程序运行时闪退的问题? 请大佬们帮忙看看是什么原因啊,在此先多谢各位大佬了 ``` 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 ```
启动不了service的原因?
小白一枚,最近在学习郭神的第一行代码,关于启动service学习中遇到个问题,代码也反复对照了好几遍确认无误,字有点多希望大神们百忙之中多多鞭策指导,感谢!Orz 开发环境:Android studio 运行环境:API21的系统 **问题内容:** 1 Service启动不了的原因是否是startService()方法处或者是Manifest中的设置问题导致?该如何进行下一步调试? 在学习到第九章启动和停止一个服务按照书中内容照搬,并按书中在创建的MyService类中的各个函数方法中都加上Log输出,运行程序后,点击启动Service的按钮之后,发现Service并没有启动(在应用程序管理运行中没有对应程序服务,Logcat下观察没有对应的Log输出),也没有报异常和错误,debug看了下在点击按钮事件中,startService()语句是执行了的,想知道下一步如何进行调试。 2在回调函数中设置断点是否有用,是否可以像普通函数一样能在debug时停到回调函数中设置的断点处? 这个问题就是上面调试的过程中一直没能将调试过程走到回调函数的断点处,我分析不出来是在回调函数中设置断点就不起作用还是由于自己程序错误根本没有执行到回调函数的原因导致的,所以求指教! **附上代码如下:** MainActivity.class ``` public class MainActivity extends Activity implements OnClickListener { private Button startService; private Button stopService; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); startService = (Button) findViewById(R.id.start_service); stopService = (Button)findViewById(R.id.stop_service); startService.setOnClickListener(this); stopService.setOnClickListener(this); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.start_service: Log.d("MyService", "From Activity beefore startService executed"); Intent startIntent = new Intent(this, MyService.class); startService(startIntent); Log.d("MyService", "From Activity after startService executed"); break; case R.id.stop_service: Intent stopIntent = new Intent(this, MyService.class); stopService(stopIntent); break; default: break; } } } ``` MyService.class ``` public class MyService extends Service { @Override public IBinder onBind(Intent intent){ return null; } @Override public void onCreate() { super.onCreate(); Log.d("MyService", "onCreate executed"); } @Override public int onStartCommand(Intent intent, int flags, int startId) { Log.d("MyService", "onStartCommand exetuted"); return super.onStartCommand(intent, flags, startId); } @Override public void onDestroy() { Log.d("MyService", "onDestroy"); super.onDestroy(); } } ``` Manifest.xml ``` <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.servicetest"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <Service android:name=".MyService"> </Service> </application> </manifest> ``` 调试过程中Logcat输出结果图: ![图片说明](https://img-ask.csdn.net/upload/201612/01/1480588205_927466.png)
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
小白学 Python 爬虫(25):爬取股票信息
人生苦短,我用 Python 前文传送门: 小白学 Python 爬虫(1):开篇 小白学 Python 爬虫(2):前置准备(一)基本类库的安装 小白学 Python 爬虫(3):前置准备(二)Linux基础入门 小白学 Python 爬虫(4):前置准备(三)Docker基础入门 小白学 Python 爬虫(5):前置准备(四)数据库基础 小白学 Python 爬虫(6):前置准备(...
卸载 x 雷某度!GitHub 标星 1.5w+,从此我只用这款全能高速下载工具!
作者 | Rocky0429 来源 | Python空间 大家好,我是 Rocky0429,一个喜欢在网上收集各种资源的蒟蒻… 网上资源眼花缭乱,下载的方式也同样千奇百怪,比如 BT 下载,磁力链接,网盘资源等等等等,下个资源可真不容易,不一样的方式要用不同的下载软件,因此某比较有名的 x 雷和某度网盘成了我经常使用的工具。 作为一个没有钱的穷鬼,某度网盘几十 kb 的下载速度让我...
世界上最牛的网络设备,价格低廉,其貌不扬......
夜深人静,电视和电脑都已经关机休息,但是我还在默默工作,我安静地趴在你家中的某个地方,7*24小时不眠不休,任劳任怨,目的只有一个,能让你舒服地躺在床上,畅快地刷手机!没错,这就是我,...
《面试宝典》2019年springmvc面试高频题(java)
前言 2019即将过去,伴随我们即将迎来的又是新的一年,过完春节,马上又要迎来新的金三银四面试季。那么,作为程序猿的你,是否真的有所准备的呢,亦或是安于本职工作,继续做好手头上的事情。 当然,不论选择如何,假如你真的准备在之后的金三银四跳槽的话,那么作为一个Java工程师,就不可不看了。如何在几个月的时间里,快速的为即将到来的面试进行充分的准备呢? 1、什么是Spring MVC ?简单...
一名大专同学的四个问题
【前言】   收到一封来信,赶上各种事情拖了几日,利用今天要放下工作的时机,做个回复。   2020年到了,就以这一封信,作为开年标志吧。 【正文】   您好,我是一名现在有很多困惑的大二学生。有一些问题想要向您请教。   先说一下我的基本情况,高考失利,不想复读,来到广州一所大专读计算机应用技术专业。学校是偏艺术类的,计算机专业没有实验室更不用说工作室了。而且学校的学风也不好。但我很想在计算机领...
复习一周,京东+百度一面,不小心都拿了Offer
京东和百度一面都问了啥,面试官百般刁难,可惜我全会。
轻松搭建基于 SpringBoot + Vue 的 Web 商城应用
首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute): 函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。Fun: Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API ...
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万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
毕业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:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
2020年1月中国编程语言排行榜,python是2019增长最快编程语言
编程语言比例 排名 编程语言 最低工资 工资中位数 最低工资 最高工资 人头 人头百分比 1 rust 20713 17500 5042 46250 480 0.14% 2 typescript 18503 22500 6000 30000 1821 0.52% 3 lua 18150 17500 5250 35000 2956 0.84% 4 go 17989 16...
看完这篇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岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
工作十年的数据分析师被炒,没有方向,你根本躲不过中年危机
2020年刚刚开始,就意味着离职潮高峰的到来,我身边就有不少人拿着年终奖离职了,而最让我感到意外的,是一位工作十年的数据分析师也离职了,不同于别人的主动辞职,他是被公司炒掉的。 很多人都说数据分析是个好饭碗,工作不累薪资高、入门简单又好学。然而今年34的他,却真正尝到了中年危机的滋味,平时也有不少人都会私信问我: 数据分析师也有中年危机吗?跟程序员一样是吃青春饭的吗?该怎么保证自己不被公司淘汰...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
一文带你看清 HTTP 所有概念
上一篇文章我们大致讲解了一下 HTTP 的基本特征和使用,大家反响很不错,那么本篇文章我们就来深究一下 HTTP 的特性。我们接着上篇文章没有说完的 HTTP 标头继续来介绍(此篇文章会介绍所有标头的概念,但没有深入底层) HTTP 标头 先来回顾一下 HTTP1.1 标头都有哪几种 HTTP 1.1 的标头主要分为四种,通用标头、实体标头、请求标头、响应标头,现在我们来对这几种标头进行介绍 通用...
立即提问