Hey, I’ve been trying to get an Android apk ready to distribute, but every time I set the ‘For Distribution’ option to true the packaging fails. Packaging Development or Shipping with for distribution set to false works fine.
The only error I can see in the log is a FileNotFoundException for “[PROJECT PATH]\Intermediate/Android/APK/bin/[PROJECT NAME]-release.apk”.
Hey man to recheck the distribution settings. Try packaging without for-distribution checkbox. If the packaging succeeds, the problem lies with the distribution settings. Check out my answer in this post for the above reason.
Hey Shobhitthackar, thanks for the response! The issue only occurs when ‘For Distribution’ is ticked. However, I’ve rechecked and recreated keys a number of times with no luck. All the information in Project Settings matches the keystore name, alias and passwords.
I actually just managed to create a package with for distribution and installed on phone successfully a few times with a blank project. I then turned on ‘Google VR’ plugin and tried to repackage and I get this error again. Even after I disable the plugin it remains unable to package; somehow it causes a permanent problem with the project.