hi in building telegram app 4 android i had these errors:
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\build.gradle
Error:(17, 13) Failed to resolve: net.hockeyapp.android:HockeySDK:3.5.+
<a href="openFile:C:/Users/root/Documents/Android/Telegram-dev/TMessagesProj/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Error:(18, 13) Failed to resolve: com.googlecode.mp4parser:isoparser:1.0.+
<a href="openFile:C:/Users/root/Documents/Android/Telegram-dev/TMessagesProj/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
whats solution? whats matter?
after searching i knew that in telegram app is used HockeyApp for Android .whats it?
This article describes on how to integrate HockeyApp into your Android apps. The client allows testers to update your app to another beta version right from within the application. It will notify the tester if a new update is available. It also allows to send feedback and crash reports right from within the application. If a crash has happened, it will ask the tester on the next resume of the main activity whether he wants to send information about the crash to the server. The latter feature works for both beta apps and apps for Google Play.
In addition to HockeySDK, we also offer a native app for Android to download & install new apps, manage invites, and register the devices.
so we have dependency errors we should solve dependency.
we should add some tag to gradle.build file.(C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\build.gradle)
for more info how we can configure Hockeysdk in your app see this link:
HocekySDK configuration guide
in telegram-dev branch is done these works.we should solve errors.
always there is a solution or we will create a solution.
i connected to internet and i opened again project,so it was fixed with sync gradle and dependency
i after it:i selected build>build apk after it it returns these errors!!
Information:Gradle tasks [:TMessagesProj:assembleDebug]
:TMessagesProj:preBuild UP-TO-DATE
:TMessagesProj:preDebugBuild UP-TO-DATE
:TMessagesProj:checkDebugManifest
:TMessagesProj:preFossBuild UP-TO-DATE
:TMessagesProj:preReleaseBuild UP-TO-DATE
:TMessagesProj:prepareComAndroidSupportSupportV42210Library
:TMessagesProj:prepareComGoogleAndroidGmsPlayServices3265Library
:TMessagesProj:prepareDebugDependencies
:TMessagesProj:compileDebugAidl
:TMessagesProj:compileDebugRenderscript
:TMessagesProj:generateDebugBuildConfig
:TMessagesProj:generateDebugAssets UP-TO-DATE
:TMessagesProj:mergeDebugAssets
:TMessagesProj:generateDebugResValues
:TMessagesProj:generateDebugResources
:TMessagesProj:mergeDebugResources
AAPT err(1756840630): C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\res\drawable-hdpi\videotrimmer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1602151185): C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\res\drawable-xxhdpi\videotrimmer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1808580127): C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\res\drawable-xhdpi\videolapse.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(745347091): C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\res\drawable-xhdpi\videotrimmer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1937238112): C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\res\drawable-hdpi\videolapse.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1602151185): C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\res\drawable-xxhdpi\videolapse.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1058882141): C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\res\drawable-mdpi\videotrimmer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:TMessagesProj:processDebugManifest
:TMessagesProj:processDebugResources
:TMessagesProj:generateDebugSources
:TMessagesProj:processDebugJavaRes UP-TO-DATE
:TMessagesProj:compileDebugJavaWithJavac
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\android\volley\toolbox\HttpStack.java
Error:(19, 23) error: cannot find symbol class HttpResponse
Error:(41, 5) error: cannot find symbol class HttpResponse
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\android\volley\toolbox\Volley.java
Error:(22, 24) error: cannot find symbol class AndroidHttpClient
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\android\volley\NetworkResponse.java
Error:(19, 23) error: package org.apache.http does not exist
Error:(51, 14) error: cannot find symbol variable HttpStatus
Error:(55, 14) error: cannot find symbol variable HttpStatus
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\android\volley\toolbox\BasicNetwork.java
Error:(21, 23) error: package org.apache.http does not exist
Error:(22, 23) error: package org.apache.http does not exist
Error:(23, 23) error: package org.apache.http does not exist
Error:(24, 23) error: package org.apache.http does not exist
Error:(25, 23) error: package org.apache.http does not exist
Error:(27, 35) error: package org.apache.http.impl.cookie does not exist
Error:(174, 38) error: cannot find symbol class StatusLine
Error:(225, 34) error: cannot find symbol class HttpEntity
Error:(257, 57) error: cannot find symbol class Header
Error:(87, 13) error: cannot find symbol class HttpResponse
Error:(95, 17) error: cannot find symbol class StatusLine
Error:(100, 35) error: cannot find symbol variable HttpStatus
Error:(104, 52) error: cannot find symbol variable HttpStatus
Error:(114, 48) error: cannot find symbol variable HttpStatus
Error:(155, 39) error: cannot find symbol variable HttpStatus
Error:(156, 43) error: cannot find symbol variable HttpStatus
Error:(215, 46) error: cannot find symbol variable DateUtils
Error:(259, 14) error: cannot find symbol class Header
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\android\volley\toolbox\HttpClientStack.java
Error:(19, 23) error: cannot find symbol class HttpEntity
Error:(20, 23) error: cannot find symbol class HttpResponse
Error:(21, 23) error: cannot find symbol class NameValuePair
Error:(22, 30) error: package org.apache.http.client does not exist
Error:(23, 38) error: package org.apache.http.client.methods does not exist
Error:(24, 38) error: package org.apache.http.client.methods does not exist
Error:(25, 38) error: package org.apache.http.client.methods does not exist
Error:(26, 38) error: package org.apache.http.client.methods does not exist
Error:(27, 38) error: package org.apache.http.client.methods does not exist
Error:(28, 38) error: package org.apache.http.client.methods does not exist
Error:(29, 38) error: package org.apache.http.client.methods does not exist
Error:(30, 38) error: package org.apache.http.client.methods does not exist
Error:(31, 38) error: package org.apache.http.client.methods does not exist
Error:(32, 30) error: package org.apache.http.entity does not exist
Error:(33, 31) error: package org.apache.http.message does not exist
Error:(49, 21) error: cannot find symbol class HttpClient
Error:(53, 28) error: cannot find symbol class HttpClient
Error:(57, 36) error: cannot find symbol class HttpUriRequest
Error:(64, 25) error: cannot find symbol class NameValuePair
Error:(73, 12) error: cannot find symbol class HttpResponse
Error:(92, 28) error: cannot find symbol class HttpUriRequest
Error:(144, 49) error: cannot find symbol class HttpEntityEnclosingRequestBase
Error:(158, 37) error: cannot find symbol class HttpUriRequest
Error:(165, 49) error: cannot find symbol class HttpEntityEnclosingRequestBase
Error:(65, 14) error: cannot find symbol class NameValuePair
Error:(65, 52) error: cannot find symbol class NameValuePair
Error:(67, 28) error: cannot find symbol class BasicNameValuePair
Error:(75, 9) error: cannot find symbol class HttpUriRequest
Error:(101, 21) error: cannot find symbol class HttpPost
Error:(101, 48) error: cannot find symbol class HttpPost
Error:(103, 21) error: cannot find symbol class HttpEntity
Error:(104, 34) error: cannot find symbol class ByteArrayEntity
Error:(108, 32) error: cannot find symbol class HttpGet
Error:(112, 28) error: cannot find symbol class HttpGet
Error:(114, 28) error: cannot find symbol class HttpDelete
Error:(116, 17) error: cannot find symbol class HttpPost
Error:(116, 44) error: cannot find symbol class HttpPost
Error:(122, 17) error: cannot find symbol class HttpPut
Error:(122, 42) error: cannot find symbol class HttpPut
Error:(128, 28) error: cannot find symbol class HttpHead
Error:(130, 28) error: cannot find symbol class HttpOptions
Error:(132, 28) error: cannot find symbol class HttpTrace
Error:(135, 29) error: cannot find symbol method addHeader(String,String)
Error:(148, 13) error: cannot find symbol class HttpEntity
Error:(148, 37) error: cannot find symbol class ByteArrayEntity
Error:(175, 13) error: cannot find symbol method setURI(URI)
Error:(183, 13) error: cannot find symbol method setURI(URI)
Error:(186, 9) error: method does not override or implement a method from a supertype
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\android\volley\toolbox\HttpHeaderParser.java
Error:(19, 35) error: package org.apache.http.impl.cookie does not exist
Error:(20, 35) error: package org.apache.http.impl.cookie does not exist
Error:(21, 32) error: package org.apache.http.protocol does not exist
Error:(110, 20) error: cannot find symbol variable DateUtils
Error:(111, 18) error: cannot find symbol class DateParseException
Error:(122, 42) error: cannot find symbol variable HTTP
Error:(135, 16) error: cannot find symbol variable HTTP
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\android\volley\toolbox\HurlStack.java
Error:(19, 23) error: cannot find symbol class Header
Error:(20, 23) error: cannot find symbol class HttpEntity
Error:(21, 23) error: cannot find symbol class HttpResponse
Error:(22, 23) error: cannot find symbol class ProtocolVersion
Error:(23, 23) error: cannot find symbol class StatusLine
Error:(24, 30) error: package org.apache.http.entity does not exist
Error:(25, 31) error: package org.apache.http.message does not exist
Error:(26, 31) error: package org.apache.http.message does not exist
Error:(27, 31) error: package org.apache.http.message does not exist
Error:(86, 12) error: cannot find symbol class HttpResponse
Error:(131, 20) error: cannot find symbol class HttpEntity
Error:(106, 9) error: cannot find symbol class ProtocolVersion
Error:(106, 47) error: cannot find symbol class ProtocolVersion
Error:(113, 9) error: cannot find symbol class StatusLine
Error:(113, 41) error: cannot find symbol class BasicStatusLine
Error:(115, 9) error: cannot find symbol class BasicHttpResponse
Error:(115, 42) error: cannot find symbol class BasicHttpResponse
Error:(119, 17) error: cannot find symbol class Header
Error:(119, 32) error: cannot find symbol class BasicHeader
Error:(132, 9) error: cannot find symbol class BasicHttpEntity
Error:(132, 38) error: cannot find symbol class BasicHttpEntity
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.
Error:Execution failed for task ':TMessagesProj:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 25 mins 36.297 secs
Information:101 errors
Information:0 warnings
Information:See complete output in console
so i should find a solution
after it i edited build.gradle:
if you are using target sdk as 23 add below code in your build.gradle
android{
compileSdkVersion 23
buildToolsVersion '23.0.1'
useLibrary 'org.apache.http.legacy'
}
and change your buildscript to
classpath 'com.android.tools.build:gradle:1.3.0'
for more info follow this link
errors is reduced:
it returns:this error:
Information:Gradle tasks [:TMessagesProj:assembleDebug]
:TMessagesProj:preBuild UP-TO-DATE
:TMessagesProj:preDebugBuild UP-TO-DATE
:TMessagesProj:checkDebugManifest
:TMessagesProj:preFossBuild UP-TO-DATE
:TMessagesProj:preReleaseBuild UP-TO-DATE
:TMessagesProj:prepareComAndroidSupportSupportV42210Library UP-TO-DATE
:TMessagesProj:prepareComGoogleAndroidGmsPlayServices3265Library UP-TO-DATE
:TMessagesProj:prepareDebugDependencies
:TMessagesProj:compileDebugAidl UP-TO-DATE
:TMessagesProj:compileDebugRenderscript UP-TO-DATE
:TMessagesProj:generateDebugBuildConfig UP-TO-DATE
:TMessagesProj:generateDebugAssets UP-TO-DATE
:TMessagesProj:mergeDebugAssets UP-TO-DATE
:TMessagesProj:generateDebugResValues UP-TO-DATE
:TMessagesProj:generateDebugResources UP-TO-DATE
:TMessagesProj:mergeDebugResources UP-TO-DATE
:TMessagesProj:processDebugManifest UP-TO-DATE
:TMessagesProj:processDebugResources UP-TO-DATE
:TMessagesProj:generateDebugSources UP-TO-DATE
:TMessagesProj:processDebugJavaRes UP-TO-DATE
:TMessagesProj:compileDebugJavaWithJavac
C:\Users\root\Documents\Android\Telegram-dev\TMessagesProj\src\main\java\org\telegram\ui\Components\Scroller.java
Error:(372, 34) error: cannot find symbol method sqrt(float)
Error:(389, 35) error: cannot find symbol method sqrt(int)
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.
Error:Execution failed for task ':TMessagesProj:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 25 mins 36.812 secs
Information:3 errors
Information:0 warnings
Information:See complete output in console
Yes , i think sqrt(float) function is depreciated. replace it with sqrt(int) may it works .so for solve i change api 23 to api 19so it is solved i should find new probem 
modified 5-Apr-16 1:20am.
|