- Press F4 into Project Structure, CheckSDKs on left
- Click Modules —> SourceTab, check **
gen** and src assources
原文:http://stackoverflow.com/questions/16586899/android-studio-cannot-resolve-r-in-imported-project?rq=1
原文:http://stackoverflow.com/questions/16586899/android-studio-cannot-resolve-r-in-imported-project?rq=1
1) Create a new simple project with Android Studio.
2) Find the gradle folder in the newproject.
3) Use the export option in eclipse to create the build.gradlescript. (Requires latest sdk)
4) Copy the gradle folder into the project youwant to export to Android Studio.
5) Now try to import this project, u shall be able to select thewrapper check box.
This may resolve the problem you asked for, you can also set theGradle home path and use the other option just fine.
Hope this helps!
http://stackoverflow.com/questions/16891062/android-studio-use-gradle-wrapper-grayed-out?rq=1
究其原因,先看一下这个:
http://blog.163.com/zmhot88@126/blog/static/169846647201072654149189
如果你的启动模式是singleInstance,那么你的子Activity就在一个新的Task栈中,一旦跳转,你的onActivityResult()就会马上执行。
子Activity是singleTask,父Activity是singleTask也不行,把子Activity改为标准的就行了,理由未知
转自:http://blog.163.com/zmhot88@126/blog/static/169846647201082111716756