Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the Vision final or starter code to build #66

Open
IanRock542 opened this issue Aug 31, 2023 · 0 comments
Open

Can't get the Vision final or starter code to build #66

IanRock542 opened this issue Aug 31, 2023 · 0 comments

Comments

@IanRock542
Copy link

Android Studio Version: Android Studio Giraffe | 2022.3.1 Patch 1
OS: Mac OS Ventura 13.5.1

I'm quite new to Android dev, so I genuinely don't know what's going on here.

I haven't changed anything after downloading the code and opening it in Android Studio, but I keep getting these errors in the starter code:
Cannot resolve constructor 'ArrayAdapter(MainActivity, int, String[])'
Cannot resolve method 'getApplicationContext' in 'MainActivity'
Cannot resolve method 'getAssets' in 'MainActivity'

for lines
107 ArrayAdapter<String> adapter = new ArrayAdapter<>(this, simple_spinner_dropdown_item, items);
129 Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();
216 AssetManager assetManager = context.getAssets();

In the final code, I'm getting build errors for Gradle.
> Task :app:checkDebugManifest FAILED
> Task :app:createDebugCompatibleScreenManifests FAILED
> Task :app:compileDebugShaders FAILED
> Task :app:signingConfigWriterDebug FAILED
> Task :app:transformNativeLibsWithMergeJniLibsForDebug FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant