Closed dalight13 closed 7 years ago
I have the same problem, haven't figured it out yet.
Just try to do a gradle sync with internet on, then run or build signed apk.
Hey, that didn't work for me; it fails to sync Gradle and I still get that error. I'm not sure what's going on.
Thanks for your help
This is not related with the library, probably Android Studio didn't compile the project correctly. Try to clean the dependencies.
Make sure you have internet connection
Take a look on bottom left of Android Studio, open Terminal
Type gradlew --refresh -dependencies, then enter
Wait until finish
Sync project with gradle files, wait until finish
Run the app or build signed apk
Thank you for the quick and informative response. Unfortunately it didn't work for me. I'm fairly new to this, so I'm not sure what's going on with it.
File C:\Users\xxx.android\repositories.cfg could not be loaded.
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find com.github.KeepSafe:TapTargetView:-SNAPSHOT. Required by: project :app > com.github.danimahardhika.candybar-library:core:-SNAPSHOT
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
@tfarina223 Which version of candybar are you using?
3.3.2, from candybar-sample
@tfarina223 Just tried to import sample project, it's working just fine on my side. I'm pretty sure it's Android Studio problem, it seems like Android Studio didn't compile the project correctly.
EDIT: Sorry it should be gradlew --refresh-dependencies not gradlew --refresh -dependencies. No space after "--refresh".
Take a look on bottom left of Android Studio, open Terminal
Type gradlew --refresh-dependencies, then enter
Wait until finish
Make sure to wait until it finish, it will takes a while. After finished the terminal will shown a message like image below, then proceed to step 5.
Unfortunately it didn't work for me, I restarted Android Studio and my PC to be sure and I don't see what you showed in the second screenshot, it continues to show the error message I mentioned before.
Terminal instructions give me the same thing... so weird...
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find com.github.KeepSafe:TapTargetView:-SNAPSHOT. Required by: project :app > com.github.danimahardhika.candybar-library:core:3.3.2
I also get this warning when doing the refresh :
NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to D:\Users****\AppData\Local\Android\sdk1\ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
I'm also getting the same error. Everything was working fine until now. There are no errors on my end. Seeing that there are more than a couple people having this issue, it's something to be looked into.
EDIT (following your steps with the terminal, still fails):
Android Studio, Gradle, and CandyBar are all updated to their most recent versions.
@Seledity @dalight13 @tfarina223 Try release 3.3.3
Works for me, thanks a bunch!
After updating to CandyBar 3.3.3, the issue has been resolved. Thanks!
After updating to 3.3.3, everything is now resolved. Thank you very much!!!
Error:Failed to resolve: com.github.KeepSafe:TapTargetView:-SNAPSHOT
All my packs started showing this error today and I have no idea how to fix it. But from what I can see it is called from the library itself and not from the pack..
Any chance you know what I'm doing wrong?
Thanks
daLight