Hello,
I am having trouble launching my project on android device for testing purposes. For now I am following Android quick start guide and using Top Down template to get the hang of it. But the problem is I am not able to launch the project on my android device and its showing an unknown error.
I was pasting the log here but charcter limit was getting exceeded
Fix an installed Android app that isn’t working
Try the following steps if an app installed on your phone has any of these problems:
Crashing.
Won’t open.
Won’t respond.
Isn’t working properly. If the app that isn’t working is an Instant App, try these troubleshooting steps instead.
After each step, restart your phone to see if it fixed the issue.
Note: Some of these steps work only on Android 8.1 and up. Learn how to check your Android version.
Step 1: Restart & update
Restart your phone
Check for Android updates
Update the app
Step 2: Check for a larger app issue
Force stop the app
Clear the app’s cache & data
Sync device with Google servers
Uninstall the app
Contact the app developer
Important: If you tried the troubleshooting steps but still have trouble, contact us or the app developer.
If you can’t update any apps, or if you have trouble with Google apps, contact Google Play.
If you have trouble with one app but can use other apps without a problem, contact the app developer.
as you see above
those are what the docs tell you to install
jre is currently 17, but you need version 8 or gradle will fail
jdk is at 20 something
but you need jdk 8 from the archives
android studio 2022 is latest
but you will not be able to build unless you download version 4 from the archives
those are what where used when they built the tools.
look for the configure java app on your comp
in version it should say version 8
be sure it does (sometimes it shows as 1.8.x
otherwise I can’t help probably
its also essential you have dotnet 3.51 redist.
Maybe follow a couple utube vids like the gdxr one
if you think you have it right
then try a blank project with just a player start and try to cook it.
Also i have .net framework v4.8, v3.5.3, v3.0 and v2.something installed, is that a problem?
Edit1:
So my API level of android device was on API 31. After uninstalling and reinstallilng the correct API level, the old errors are gone and Its showing me the new error for which the log is pasted below.
I was able to solve the above error by just renaming the files d8 to dx but after launching the project i encountered another error which is specific to android 31 and above.
[Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]
Edit3:
The issue of android version has a work around which is by disabling the splashscreen but the problem is that none of the project is working on my device I have a oneplus 9R which fails to run any project even a blank project.
If any one of the issues can be solved, Please revert soon, thanks in advance
I can’t tell why its not building
hope someone else can help
it is telling you to reinstall the sdk because its hooped
it also is saying you are using sdk 31
I suggest 29 or 30
you need to have command tools-latest and cmd tools for the particular sdk you have installed.
cmd tools are latest and sdk is right as my device requires API 31 and sdk needs to be compatible with that API. The problem is not in building its when files are getting transfered to the android device and running it on that device. I am past the build problem. You can check my past edits for that.
edit1: I think i will consider this solved and post a new querry for the descriptor file as technically the problem of uknown error has solved.
Steps to fix -
Step 1: Restart & update. Restart your phone. Important: Settings can vary by phone. For more info, contact your device manufacturer.
Step 2: Check for a larger app issue. Force stop the app. You can usually force stop an app through your phone’s Settings app.