首页 \ 问答 \ 在mac终端设置默认目录(Set the default directory in mac terminal)

在mac终端设置默认目录(Set the default directory in mac terminal)

我只使用终端(mac)为git,我只使用git一个目录。 是否可以将默认目录(终端打开的目录)设置为使用git的目录,如果是这样?


I only use terminal (mac) for git, and I only use git for one directory. Is it possible to set the default directory (the directory when terminal is opened) to the directory where I use git, and if so how?


原文:https://stackoverflow.com/questions/5696757
更新时间:2023-07-17 22:07

最满意答案

你在使用外部罐子吗? 这些需要在libs (精确编写)文件夹中,或者类不会被“dexed”。 如果您没有使用gradle导入项目中的jar,则需要手动添加它以将其包含在构建中。

Android - 无法解析超类


Are you using external Jars? These need to be in a libs (exactly written) folder or there classes will not be "dexed". If you are not using gradle to import the jar in your project you need to add it manually to include it in the build.

Android - Unable to resolve superclass

相关问答

更多
  • 你在使用外部罐子吗? 这些需要在libs (精确编写)文件夹中,或者类不会被“dexed”。 如果您没有使用gradle导入项目中的jar,则需要手动添加它以将其包含在构建中。 Android - 无法解析超类 Are you using external Jars? These need to be in a libs (exactly written) folder or there classes will not be "dexed". If you are not using gradle to ...
  • 在libgdx项目中使用Android视图是错误的方法。 您应该将所有与LibGdx extends AndroidApplication上的视图一起使用的LibGdx extends AndroidApplication类,如果您想从另一个类访问此逻辑,您应该创建将转移到您的主Game类的Interface 。 通过这种方式,您可以在任何地方访问“Android特定”逻辑。 有关更多详细信息,请参阅本指南 - 与平台特定代码连接 It is wrong way of working with Androi ...
  • 正如@ Polarbear0106所说,libGDX的组件未包含在APK中。 对我有用的修复是在proguard-project.txt文件中添加这一行: “-keep class com.badlogic。** {*;}” 然后它正确导出并上传到Play商店,实时版本不再崩溃! As @Polarbear0106 said, components of libGDX were not being included in the APK. The fix that worked for me was to ...
  • 这个答案属于LibGDX论坛的Fringale。 他/她没有一个Stackoverflow帐户。 Fringale: 我不知道为什么错误只出现在添加Kidoz SDK后才出现,但是从日志来看,它看起来像所需架构的libgdx.so库(ARM64我会说,因为它正在查看com.mobility.kpa-1缺少/ lib / arm64)。 几个版本之前添加了对64位Android原生代的支持,因此您的Gradle文件可能不是最新的: 通过将android / build.gradle中的'copyAndroid ...
  • 最后纠正这个问题的是从github上的libgdx存储库下载默认的uiskin文件。 我从头开始构建它时显然错过了什么? 我在回购中使用的文件是: uiskin.json uiskin.atlas 为Default.png uiskin.png What finally corrected this issue was downloading the default uiskin files from the libgdx repository on github. Apparently I missed ...
  • 正如在这里解释和解决的那样,最新ADT插件的一些变化导致了这一点,解决方案只是将所有需要的源添加到您的Android项目中,如链接所示。 As it's been explained and solved here, some change of the latest ADT plugin causes this, solution is just add all the needed sources to your Android project, as the link says.
  • 有一些人有例外,其中logcat说: GdxRuntimeException: Libgdx requires OpenGL ES 2.0 这是因为您的模拟器不使用您的gpu进行图形处理,最好的解决方案是使用您的手机来测试您的应用程序,但如果出于任何原因您不能使用@AngelAngel应用此解决方案: libgdx android在启动时失败 。 出于某种原因(可能是opengl没有出现故障),以下错误的解决方案也可能对您有所帮助 com.badlogic.gdx.utils.GdxRuntime ...
  • 好吧,我现在解决了,原来我使用了错误版本的game.GameSystem。 Okay, I solved it now, turned out I used the wrong version of game.GameSystem.
  • 您是否在com.ianmarkowitz.superfrenzy.MainActivity使用SDK 10之后的任何Android API? 如果引用不存在的类/方法,Dalvik链接器将拒绝加载MainActivity 。 Are you using any Android APIs from after SDK 10 in com.ianmarkowitz.superfrenzy.MainActivity? The Dalvik linker will refuse to load MainActivi ...
  • 我解决了 决定不删除此问题以防其他人遇到此问题。 虽然核心项目包含app warp的库,但android项目却没有。 这导致应用程序崩溃。 虽然代码说没有错误,但是在编译应用程序时,它是在没有libs的情况下编译的,导致NoClassDefFoundError。 我只是将libs从核心项目复制到android项目,将它们添加到构建路径,然后启动应用程序。 I solved it. Decided not to delete this question just in case someone else co ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)