在安卓工程根目录下命令行下编译模块 $ mmm path/module 编译APP也是使用mmm命令 构建一个APP 可以参照development/samples/ApiDemos来进行布局 Android.mk AndroidManifest.xml assets/ README.txt res ...
分类:
移动开发 时间:
2020-06-27 11:33:55
阅读次数:
70
事情经过: 今天把一份以前自己打的的App基础模板拿下来的时候,发现页面没有报红,但是错误了 报错信息: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.yijie/com.example. ...
分类:
移动开发 时间:
2020-06-27 11:33:38
阅读次数:
94
Range Sum Query - Immutable (E) 题目 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Give ...
分类:
其他好文 时间:
2020-06-27 09:44:58
阅读次数:
46
First Missing Positive (H) 题目 Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example ...
分类:
其他好文 时间:
2020-06-27 09:31:04
阅读次数:
53
方法1:浏览器调试方式 package.json修改: { "name": "electron-quick-start", "version": "1.0.0", "description": "A minimal Electron application", "main": "main.js", ...
分类:
系统相关 时间:
2020-06-27 00:23:03
阅读次数:
50
import sys # print(help(sys.stdout)) sys.stdout.write("the quick brown fox jumps over the lazy dog.") #返回值是字符串长度 sys.stderr.write("to err is humane, t ...
分类:
编程语言 时间:
2020-06-26 22:12:11
阅读次数:
55
报错信息:java.lang.ClassCastException: com.example.yijie.MainData cannot be cast to androidx.fragment.app.Fragment 报错关键点:XXXX cannot be cast to XXXXX 报错说明 ...
分类:
移动开发 时间:
2020-06-26 21:50:03
阅读次数:
85
Singleton: Make sure that there can be "only one instance" of a Class The Singleton class only provide a "static method" to get its object for example ...
分类:
其他好文 时间:
2020-06-26 20:37:18
阅读次数:
44
Ubuntu Server系统基础配置 1:更改主机名: 1 ~$ cat /etc/hostname 2 ubuntu-node.example.com View Code 2:配置root远程登录 默认情况下,ubuntu不允许root用戶远程ssh,如果有实际场景需要允许root用戶远程ssh ...
分类:
系统相关 时间:
2020-06-26 20:25:50
阅读次数:
66
import argparse import torch #核心就是argparse类生成参数包parser实例 parser = argparse.ArgumentParser(description='PyTorch Example') #通过这个类实例的方法如add_argument添加参数属 ...
分类:
其他好文 时间:
2020-06-26 20:08:04
阅读次数:
72