报错相关

1.Your local changes would be overwritten by merge

必须提交本地的,只是把本地的提交,不是push,没有push其他人看不到代码还在本地


2.canot use subversion command line client svn

打开AS   settings - > Version control -> Subversion,在这里面将左边的三个复选框给勾选掉


3.fatal: Unable to create ‘xxxx/.git/index.lock': File exists.

fatal: Unable to create ‘xxxx/.Git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.

解决办法:   rm -f ./.git/index.lock

4.fatal:pathspec did not match any file 

5.Gradle project sync failed. Please fix your project and try again.

Error:FAILURE: Build failed with an exception.  
  * What went wrong:  
    Task '' not found in root project 'EasyLink'. 
    * Try:  
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace.
    Run with --info or --debug option to get more log output. 
解决办法:
    在gradle.properties文件(没有就新建新的)中添加
    #org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m

6.android.view.WindowLeaked: Activity com.gl.travel.CityChooseActivity has leaked window android.widge

mWindowManager.removeView(overlay);

7.cannot perform this action after onsaveinstancestate

最好在FragmentActivity#onResumeFragments()或者Activity#onPostResume()中使用。这两个方法会保证在activity恢复到最初状态后被调用

commit改为commitAllowingStateLoss()只能当做最后的手段

8.Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Lig

In file res/values/styles.xml change the line:  
<style name="AppBaseTheme" parent="android:Theme.Light">  
to:  
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light">  
  
In file res/values-v11/styles.xml change the line:  
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">  
to:  
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light">  
  
In file res/values-v14/styles.xml change the line:  
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">   
to:   
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
9.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值