0%

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

  1. From your existing project, go to ‘File’ -> ‘ProjectStructure’
  2. Click ‘Modules’ entry from the ‘Project Settings’ group (on theleft side)
  3. Click ‘Android’ module for your project
  4. Click ‘New’ where it says ‘Android Platform’
  5. Point it to the Android SDK location that you havelocally.
  6. Select an API version.
  7. Click ‘Apply’

当我跳转的时候,Log的结果所一跳转尚未做任何动作onActivityResult()就已经执行了

究其原因,先看一下这个:

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/