georgiaw/Smartphone-Pentest-Framework

Target id 'Google Inc.:Google APIs:4 is not valid issue

anhnt1 opened this issue · 10 comments

Hello,

I have just installed SPF, but got "Target id 'Google Inc.:Google APIs:4 is not valid" error when creating an SPF App. I use Ubuntu 14.04 64bit.
Please help. Thanks,
Tuan

Output:

Error: Target id 'Google Inc.:Google APIs:4' is not valid. Use 'android list targets' to get the target ids.
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Buildfile: /root/Smartphone-Pentest-Framework/FrameworkAndroidApp/build.xml

BUILD FAILED
/root/Smartphone-Pentest-Framework/FrameworkAndroidApp/build.xml:90: Cannot find /root/adt-bundle-linux-x86-20131030/sdk/tools/ant/build.xml imported from /root/Smartphone-Pentest-Framework/FrameworkAndroidApp/build.xml

Total time: 0 seconds

This happens pretty much every time Google updates their installer packages. I will get the install script fixed ASAP.
Georgia
On Apr 13, 2015, at 12:21 AM, anhnt1 notifications@github.com wrote:

Hello,

I have just installed SPF, but got "Target id 'Google Inc.:Google APIs:4 is not valid" error when creating an SPF App. I use Ubuntu 14.04 64bit.
Please help. Thanks,
Tuan

Output:

Error: Target id 'Google Inc.:Google APIs:4' is not valid. Use 'android list targets' to get the target ids.
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Buildfile: /root/Smartphone-Pentest-Framework/FrameworkAndroidApp/build.xml

BUILD FAILED
/root/Smartphone-Pentest-Framework/FrameworkAndroidApp/build.xml:90: Cannot find /root/adt-bundle-linux-x86-20131030/sdk/tools/ant/build.xml imported from /root/Smartphone-Pentest-Framework/FrameworkAndroidApp/build.xml

Total time: 0 seconds


Reply to this email directly or view it on GitHub.

I wonder if I need to download and install adt-bundle-linux-x86-20131030 in order to build an SPF app. Please tell me.
Thanks,
Tuan

Well yeah but the installer is doing that.
On Apr 14, 2015 4:48 AM, "anhnt1" notifications@github.com wrote:

I wonder if I need to download and install adt-bundle-linux-x86-20131030
in order to build an SPF app. Please tell me.
Thanks,
Tuan


Reply to this email directly or view it on GitHub
#28 (comment)
.

Hello, could you tell me how I can manually fix the error? I would fix it if it is simple. Thank you.

you need to open android and update to the latest tools and then download android 4.0 sdk. I’ll fix the installer as soon as I get a free moment.
On Apr 15, 2015, at 3:40 AM, anhnt1 notifications@github.com wrote:

Hello, could you tell me how I can manually fix the error? I would fix it if it is simple. Thank you.


Reply to this email directly or view it on GitHub.

any headway on this?

The installer is updated.
On Jul 28, 2015, at 3:31 PM, digitalirony notifications@github.com wrote:

any headway on this?


Reply to this email directly or view it on GitHub.

I just tried it from the code I pulled about an hour ago. Did you make the change since then? I am still seeing this error.

i have no time right now. its the week before blackhat.
On Jul 28, 2015, at 3:33 PM, digitalirony notifications@github.com wrote:

I just tried it from the code I pulled about an hour ago. Did you make the change since then? I am still seeing this error.


Reply to this email directly or view it on GitHub.

This is fixed.