red5pro / android-streaming-testbed

Has Moved!
0 stars 2 forks source link

Android Studio build fails - task 'app:compileDebugJava' #2

Closed stfulton closed 7 years ago

stfulton commented 8 years ago

Greetings -

Build attempt on Studio 2.1.1 for 4.2 (actual) device failing with errors in two classes:

/Users/timfulton/android-streaming-testbed/app/src/main/java/red5pro/org/testandroidproject/tests/PublishRemoteCallTest/PublishRemoteCallTest.java
error: method send in class R5Stream cannot be applied to given types;
required: R5RemoteCallContainer
found: String,Hashtable<String,String>
reason: actual and formal argument lists differ in length
/Users/timfulton/android-streaming-testbed/app/src/main/java/red5pro/org/testandroidproject/tests/SubscribeTwoStreamTest/SubscribeTwoStreamTest.java
error: cannot find symbol variable audioController
Note: /Users/timfulton/android-streaming-testbed/app/src/main/java/red5pro/org/testandroidproject/tests/SubscribeImageTest/SubscribeImageTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Error:Execution failed for task ':app:compileDebugJava'.
> Compilation failed; see the compiler error output for details.

Re: deprecated API - in my build.gradle(module: app), I have:

compileSdkVersion 19
buildToolsVersion 19.1.0
targetSdkVersion 19

I'm very new to Android development, but this strikes me as not a configuration issue.

Any ideas greatly appreciated!

stfulton commented 8 years ago

I believe I've confirmed the above are not configuration errors. Without making any other changes in the project, from the Packages view, deleted the packages SubscribeTwoStreamTest and PublishRemoteCallTest, rebuilt and successfully installed the apk onto physical 4.2 device.

App launches and allows publish and subscribe with local and cloud server instance.

Of course, selecting 'Publish-Remote' or 'Subscribe-Two Stream' fail with blank screen and logcat output:

05-18 12:59:42.456 17380-17380/red5pro.org.testandroidproject W/System.err: java.lang.ClassNotFoundException: red5pro.org.testandroidproject.tests.SubscribeTwoStreamTest.SubscribeTwoStreamTest 05-18 13:07:18.973 17380-17380/red5pro.org.testandroidproject W/System.err: java.lang.ClassNotFoundException: red5pro.org.testandroidproject.tests.PublishRemoteCallTest.PublishRemoteCallTest (Not certain, but believe had same error building streaming-android-master)

Hope this helps.

Regards, Tim Fulton