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

Code won't compile #134

Closed
jaqjacek opened this issue Feb 8, 2020 · 11 comments
Closed

Code won't compile #134

jaqjacek opened this issue Feb 8, 2020 · 11 comments

Comments

@jaqjacek
Copy link

jaqjacek commented Feb 8, 2020

I try to contribute for this project.
Downloaded code from master, develop and latest tag 6.7.1 commit 4fc19cb and there where problems with compilation
1 Issue: with dependencies: NestedScrollWebView AndroidStudio just scream that it could't find that aar file. I fixed that download source code of that project and put class insside app folder.

2 Issue: Class BggApplication uses another classc om.boardgamegeek.events.BggEventBusIndex that is missing in source code. Workaround to comment out uses of that code.

Finaly code compiles and run in AVD

Android Studio 3.5.3
Android Gradle Plugin: 3.5.2
Gradle: 5.4.1

This my first approach to android studio and maybe I'm doing something wrong ?

BTW very cool app!!!!!

@aglenn
Copy link

aglenn commented Feb 17, 2020

Had the same problem with your first issue. Looks like a problem with the build at JitPack: https://jitpack.io/com/github/tobiasrohloff/NestedScrollWebView/v1.0.2/build.log

The second issue could have been a side effect of the first. That's a generated class, so it might not have been generated when the build failed because of NestScrollWebView.

@jaqjacek
Copy link
Author

jaqjacek commented Mar 8, 2020

Fresh code from develop commit: 326d4ec don't shout about BggEventBusIndex
NestedScrollWebView still don't work missing artifact

New problem that's don't stop compilation but throw strange error:
> Task :app:compileDebugJavaWithJavac Gradle may disable incremental compilation as the following annotation processors are not incremental: jetified-eventbus-annotation-processor-3.1.1.jar (org.greenrobot:eventbus-annotation-processor:3.1.1), jetified-icepick-processor-3.2.0.jar (frankiesardo:icepick-processor:3.2.0), jetified-auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2). Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. org.aspectj.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.aspectj.apache.bcel.classfile.Constant.readConstant(Constant.java:139) at org.aspectj.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:98) at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:186)

@ccomeaux
Copy link
Owner

I don't know whey NestScrollWebView would be giving you problems. What version of Android Studio are you using?

@beauxq
Copy link

beauxq commented Apr 21, 2020

I just downloaded the latest Android Studio today 3.6.3 and I see the same problem:
ERROR: Failed to resolve: com.github.rhlff:NestedScrollWebView:v1.0.2

@Kaligula0
Copy link
Contributor

Kaligula0 commented Apr 21, 2020

I just downloaded the latest Android Studio today 3.6.3 and I see the same problem:
ERROR: Failed to resolve: com.github.rhlff:NestedScrollWebView:v1.0.2

I confirm, the same with my Android Studio 3.6.3, I've just tried.
I have no idea what I'm doing so please be kind to my un-knowledge, but I'm just trying to inspect the error…
Am I supposed to see a file named Gradle__com_github_rhlff_NestedScrollWebView_v1_0_2_aar.xml (or similar) in /.idea/libraries? Because there are files named like other dependencies but there is no file about NestedScrollWebView. BUT – I don't know if 1) it's not there because the Android Studio hasn't found the dependency (and the …_arr.xml file is sth like gradle log) or 2) it hasn't found it because there is no such file (and the …_arr.xml file is the dependency itself)?

@Kaligula0
Copy link
Contributor

I also see cannot resolve symbol 'RuntimeException' in lines 35, 45 and cannot resolve symbol 'GregorianCalendar' in line 77.
Bez tytułu

@Kaligula0
Copy link
Contributor

Not only we have this issue, see this issue from month ago → tobiasrohloff/NestedScrollWebView#14
They say the workaround is to import the project as a lib. (Can someone explain me what it means and how to do this?)

@Cowboyjunkie
Copy link

Cowboyjunkie commented Apr 27, 2020

Hi Vinne2!
In Android Studio at the Bottom is a Tab called "Terminal" chose that and enter

git submodule add https://github.com/rhlff/NestedScrollWebView

After a brief Dialog you open the "settings.gradle" in the root dir of the project (lefthand in android studio) There should only be on line in the file. add the following two line:

include ':NestedScrollWebView:lib'
project(':NestedScrollWebView').projectDir = new File('/NestedScrollWebView')

In the folder "app" open the "build.gradle" and add the following line under "dependencies" (you will see similar lines there.

implementation project(':NestedScrollWebView:lib')

In the same file further down is another line about "nestedscrollwebview": remove that line.

Regards,
John

@Cowboyjunkie
Copy link

Ohh...nearly forgot:
After you do that Android Studio will give you some error about "mixing java versions".
Simply close Android Studio, delete the ".idea" folder and open AS again.

@Kaligula0
Copy link
Contributor

@tobiasrohloff solved his issue on NestedScrollWebView → tobiasrohloff/NestedScrollWebView#14 (comment)

@ccomeaux
Copy link
Owner

Fixed with a26e7e8

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

6 participants