报错相关

来源:互联网 发布:西南证券交易软件 编辑:程序博客网 时间:2024/06/09 21:05

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.



0 0
原创粉丝点击