I’m just to install the test project and getting this error message in VS Code debug console. Any ideas?
Launching lib/main.dart on Android SDK built for x86 in debug mode…
[!] Your app isn’t using AndroidX.
To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.
[!] Gradle does not have execution permission.
You should change the ownership of the project directory to your user, or move the project to a directory with execute permissions.
Gradle task assembleDebug failed with exit code 1
Could you please clarify where your “test project” came from?
It would be quite helpful for us to have steps to reproduce the problem.
It’s just the one I’ve downloaded from my backendless account, I haven’t made any alterations to it.
Sorry for the inconvenience. We will check and update this Flutter test project.
For now you can fix the error “Your app isn’t using AndroidX” by adding the following lines:
Thanks for the reply. I’m still getting the same error message. When I go back into that file, another line has been added. I’m not sure if that’s any help?
This line doesn’t affect your problem.
Do you still get the
Your app isn’t using AndroidX error?
Can you also specify what the test project do you use? Did you download project template for Flutter or one of the Code Generation projects?
I used the project template for Flutter. Still getting the same error message in VS Code. Again in Android Studio. Just doing the file sync now.
I’ve reproduced your issue and I’ve created the internal ticket BKNDLSS-20664.
For now you can fix tthe first error “Your app isn’t using AndroidX” by adding the following lines:
android/gradle.properties file as I mentioned above.
To fix the second error “Gradle does not have execution permission” you should run the following command from your IDE:
chmod a+rx android/gradlew
This hotfix is currently working for me. We will try to fix the Project Template as soon as we can and will let you know about it.
I’m sorry the inconvenience.
We’ve updated the project template. Could you kindly let us know whether it works for you now?