Android Studio local path doesn't exist

前端 未结 9 1967
离开以前
离开以前 2020-12-06 07:33

I imported my Eclipse project into Android using Gradle. At first I had problems with R.java but I resolved them by adding \'gen\' folder as sources in Project Settings.

相关标签:
9条回答
  • 2020-12-06 08:06

    if you use adb, just restart your device (Phone, Tablet, ...), That works for me.

    0 讨论(0)
  • 2020-12-06 08:11

    Check permissions on your SDK directory

    0 讨论(0)
  • 2020-12-06 08:12

    You need to run the assemble task before you can export any apk file.

    From the right hand side, open the gradle task

    To export debug apk file:

    1. Open Build Variants form the left bottom corner. Select Build variant as "debug".
    2. Open Gradle tasks from right hand side. Run assembleDebug
    3. Generate the apk file using Build > Generate signed apk file. Note that though the option says "signed" apk it will generate a debug apk as the build variant selected is debug

    To export release apk file:

    1. Open Build Variants form the left bottom corner. Select Build variant as "release".
    2. Open Gradle tasks from right hand side. Run assembleRelease
    3. Generate the apk file using Build > Generate signed apk file. Note that signed apk will not generate a signed apk if you have build variant selected as debug. Make sure that the build variant is selected as release
    0 讨论(0)
提交回复
热议问题